Security readout for executives and security teams
Plain-English summary
This is an architecture-specific Linux kernel flaw affecting LoongArch systems. Incorrect handling of a BPF struct-operations return value can turn a valid pointer into an invalid address and crash the kernel. The supplied CVSS score is 7.8 (high), although the source demonstrates a panic rather than a real-world compromise.
Executive priority
Treat this as a targeted high-priority kernel update for LoongArch infrastructure, not an estate-wide emergency without LoongArch exposure. Accelerate remediation where affected systems run untrusted local workloads or rely heavily on BPF. Confirm distribution-specific fixes because the bundle does not provide complete package mappings.
Technical view
The LoongArch BPF JIT treated a struct_ops program’s pointer return as a 32-bit value and sign-extended it to 64 bits. That behavior conflicts with the LoongArch ABI and the function model’s return specification, producing an invalid skb pointer. The ns_bpf_qdisc selftest triggered a kernel paging fault in __qdisc_run.
Likely exposure
Exposure is limited to LoongArch systems running versions identified as affected in the bundle: Linux 6.17, 6.17.3, and 6.18. Relevant BPF struct_ops use is also required for the documented failure. The supplied version data is insufficient to map every distribution kernel or backport conclusively.
Exploitation context
The CVSS vector describes a local, low-complexity attack requiring low privileges and no user interaction, with potentially high confidentiality, integrity, and availability impact. However, the provided evidence only demonstrates a kernel panic during a BPF selftest. The CVE is not in KEV, and no source supplied here reports active exploitation.
Researcher notes
The demonstrated root cause is incorrect return-value extension in the LoongArch BPF struct_ops path. Two stable-kernel commits are cited as resolution references. Public evidence supplied here does not establish exploitation, privilege escalation, or data compromise beyond the CVSS assessment; the reproducible result is a kernel paging fault and panic.
Mitigation direction
Inventory LoongArch hosts and record exact Linux kernel releases and vendor builds.
Determine whether each build includes either cited stable-kernel fix commit.
Apply vendor-supported kernel updates containing the appropriate stable fix.
Prioritize systems where local users or workloads can exercise BPF struct operations.
Validation and detection
Confirm the host CPU architecture is LoongArch before classifying it as exposed.
Compare kernel version and patch provenance with the affected entries and cited commits.
After updating, confirm the intended fixed kernel is running.
In non-production, rerun the relevant BPF selftest and verify that no kernel panic occurs.
Review logs for paging faults or panics involving __qdisc_run and bpf_testmod.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40041 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
3Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.