CVE-2025-68742

Source
https://cve.org/CVERecord?id=CVE-2025-68742
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68742.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-68742
Downstream
Related
Published
2025-12-24T12:09:39.341Z
Modified
2026-03-20T12:46:26.404063Z
Summary
bpf: Fix invalid prog->stats access when update_effective_progs fails
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix invalid prog->stats access when updateeffectiveprogs fails

Syzkaller triggers an invalid memory access issue following fault injection in updateeffectiveprogs. The issue can be described as follows:

_cgroupbpfdetach updateeffectiveprogs computeeffectiveprogs bpfprogarrayalloc <-- fault inject purgeeffectiveprogs /* change to dummybpfprog */ array->items[index] = &dummybpfprog.prog

---softirq start--- __do_softirq ... __cgroupbpfrunfilterskb __bpfprogrunsavecb bpfprogrun stats = thiscpuptr(prog->stats) /* invalid memory access */ flags = u64statsupdatebeginirqsave(&stats->syncp) ---softirq end---

staticbranchdec(&cgroupbpfenabled_key[atype])

The reason is that fault injection caused updateeffectiveprogs to fail and then changed the original prog into dummybpfprog.prog in purgeeffectiveprogs. Then a softirq came, and accessing the members of dummybpfprog.prog in the softirq triggers invalid mem access.

To fix it, skip updating stats when stats is NULL.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68742.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
492ecee892c2a4ba6a14903d5d586ff750b7e805
Fixed
93d1964773ff513c9bd530f7686d3e48b786fa6b
Fixed
bf2c990b012100610c0f1ec5c4ea434da2d080c2
Fixed
539137e3038ce6f953efd72110110f03c14c7d97
Fixed
56905bb70c8b88421709bb4e32fcba617aa37d41
Fixed
2579c356ccd35d06238b176e4b460978186d804b
Fixed
7dc211c1159d991db609bdf4b0fb9033c04adcbc

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68742.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.1.0
Fixed
6.1.160
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.120
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.63
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.13
Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68742.json"