CVE-2026-45903

Source
https://cve.org/CVERecord?id=CVE-2026-45903
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45903.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45903
Downstream
Published
2026-05-27T12:17:11.382Z
Modified
2026-07-15T01:48:52.863271218Z
Summary
bpf: Fix memory access flags in helper prototypes
Details

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

bpf: Fix memory access flags in helper prototypes

After commit 37cce22dbd51 ("bpf: verifier: Refactor helper access type tracking"), the verifier started relying on the access type flags in helper function prototypes to perform memory access optimizations.

Currently, several helper functions utilizing ARGPTRTOMEM lack the corresponding MEMRDONLY or MEM_WRITE flags. This omission causes the verifier to incorrectly assume that the buffer contents are unchanged across the helper call. Consequently, the verifier may optimize away subsequent reads based on this wrong assumption, leading to correctness issues.

For bpfgetstackprotorawtp, the original MEMRDONLY was incorrect since the helper writes to the buffer. Change it to ARGPTRTOUNINITMEM which correctly indicates write access to potentially uninitialized memory.

Similar issues were recently addressed for specific helpers in commit ac44dcc788b9 ("bpf: Fix verifier assumptions of bpfdpath's output buffer") and commit 2eb7648558a7 ("bpf: Specify access type of bpfsysctlget_name args").

Fix these prototypes by adding the correct memory access flags.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45903.json",
    "cna_assigner": "Linux"
}
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
37cce22dbd51a3ef7f6c08c3fb5f1c5075a17fbb
Fixed
fdfe75161f6e8c41a7d3023fbb815b537107b806
Fixed
aa319592892068bd960c1a1c07bd621085b0c63d
Fixed
802eef5afb1865bc5536a5302c068ba2215a1f72

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45903.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.18.14
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45903.json"