CVE-2026-43333

bpf: reject direct access to nullable PTR_TO_BUF pointers

State
Published
Severity
Not scored
Published
May 8, 2026
Updated
May 23, 2026
Reserved
May 1, 2026

Read the record on cve.org

Description

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

bpf: reject direct access to nullable PTR_TO_BUF pointers

check_mem_access() matches PTR_TO_BUF via base_type() which strips PTR_MAYBE_NULL, allowing direct dereference without a null check.

Map iterator ctx->key and ctx->value are PTR_TO_BUF | PTR_MAYBE_NULL. On stop callbacks these are NULL, causing a kernel NULL dereference.

Add a type_may_be_null() guard to the PTR_TO_BUF branch, matching the existing PTR_TO_BTF_ID pattern.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b453361384c2db1c703dacb806d5fd36aec4ceca to before 10bc4a4dcded509c5d5c67d497900c3922c604cdAffected
  • 20b2aff4bc15bda809f994761d5719827d66c0b4 to before 21a10c06ffae24cb01fd174a7ab7736001d2ea56Affected
  • 20b2aff4bc15bda809f994761d5719827d66c0b4 to before 8755066f7bd0f4ac46a29d1708c7b20894539252Affected
  • 20b2aff4bc15bda809f994761d5719827d66c0b4 to before 70abd9d118da2f56beb4ec22e3a29becae373535Affected
  • 20b2aff4bc15bda809f994761d5719827d66c0b4 to before 63276547debc4d8a73eefb2c5273b2a905c961b0Affected
  • 20b2aff4bc15bda809f994761d5719827d66c0b4 to before 4f6c99dc0420f1a3d671c1b8ab8a7ac84d9cba09Affected
  • 20b2aff4bc15bda809f994761d5719827d66c0b4 to before b0db1accbc7395657c2b79db59fa9fae0d6656f3Affected
  • e982070f8970bb62e69ed7c9cafff886ed200349Affected
  • 5.15.37 to before 5.15.203Affected
  • 5.16.11 to before 5.17Affected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 5.15.203 through 5.15.*Not affected
  • 6.1.168 through 6.1.*Not affected
  • 6.6.134 through 6.6.*Not affected
  • 6.12.81 through 6.12.*Not affected
  • 6.18.22 through 6.18.*Not affected
  • 6.19.12 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.