# CVE-2024-43910: bpf: add missing check\_func\_arg\_reg\_off() to prevent out-of-bounds memory accesses

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-08-26T10:11:14.105Z
- **Modified:** 2026-08-05T11:37:04.139Z

## Who should check

- Anyone running Linux \>= a64bfe618665ea9c722f922cba8c6e3234eac5ac, \< 13663a7c644bf1dedaf461d07252db5d76c8759a; \>= a64bfe618665ea9c722f922cba8c6e3234eac5ac, \< ec2b9a5e11e51fea1bb04c1e7e471952e887e874
- Anyone running Linux 6.8

## Description

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

bpf: add missing check\_func\_arg\_reg\_off() to prevent out-of-bounds memory accesses

Currently, it's possible to pass in a modified CONST\_PTR\_TO\_DYNPTR to
a global function as an argument. The adverse effects of this is that
BPF helpers can continue to make use of this modified
CONST\_PTR\_TO\_DYNPTR from within the context of the global function,
which can unintentionally result in out-of-bounds memory accesses and
therefore compromise overall system stability i.e.

\[  244.157771\] BUG: KASAN: slab-out-of-bounds in bpf\_dynptr\_data+0x137/0x140
\[  244.161345\] Read of size 8 at addr ffff88810914be68 by task test\_progs/302
\[  244.167151\] CPU: 0 PID: 302 Comm: test\_progs Tainted: G O E 6.10.0-rc3-00131-g66b586715063 \#533
\[  244.174318\] Call Trace:
\[  244.175787\]  \<TASK\>
\[  244.177356\]  dump\_stack\_lvl+0x66/0xa0
\[  244.179531\]  print\_report+0xce/0x670
\[  244.182314\]  ? \_\_virt\_addr\_valid+0x200/0x3e0
\[  244.184908\]  kasan\_report+0xd7/0x110
\[  244.187408\]  ? bpf\_dynptr\_data+0x137/0x140
\[  244.189714\]  ? bpf\_dynptr\_data+0x137/0x140
\[  244.192020\]  bpf\_dynptr\_data+0x137/0x140
\[  244.194264\]  bpf\_prog\_b02a02fdd2bdc5fa\_global\_call\_bpf\_dynptr\_data+0x22/0x26
\[  244.198044\]  bpf\_prog\_b0fe7b9d7dc3abde\_callback\_adjust\_bpf\_dynptr\_reg\_off+0x1f/0x23
\[  244.202136\]  bpf\_user\_ringbuf\_drain+0x2c7/0x570
\[  244.204744\]  ? 0xffffffffc0009e58
\[  244.206593\]  ? \_\_pfx\_bpf\_user\_ringbuf\_drain+0x10/0x10
\[  244.209795\]  bpf\_prog\_33ab33f6a804ba2d\_user\_ringbuf\_callback\_const\_ptr\_to\_dynptr\_reg\_off+0x47/0x4b
\[  244.215922\]  bpf\_trampoline\_6442502480+0x43/0xe3
\[  244.218691\]  \_\_x64\_sys\_prlimit64+0x9/0xf0
\[  244.220912\]  do\_syscall\_64+0xc1/0x1d0
\[  244.223043\]  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
\[  244.226458\] RIP: 0033:0x7ffa3eb8f059
\[  244.228582\] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 8f 1d 0d 00 f7 d8 64 89 01 48
\[  244.241307\] RSP: 002b:00007ffa3e9c6eb8 EFLAGS: 00000206 ORIG\_RAX: 000000000000012e
\[  244.246474\] RAX: ffffffffffffffda RBX: 00007ffa3e9c7cdc RCX: 00007ffa3eb8f059
\[  244.250478\] RDX: 00007ffa3eb162b4 RSI: 0000000000000000 RDI: 00007ffa3e9c7fb0
\[  244.255396\] RBP: 00007ffa3e9c6ed0 R08: 00007ffa3e9c76c0 R09: 0000000000000000
\[  244.260195\] R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffff80
\[  244.264201\] R13: 000000000000001c R14: 00007ffc5d6b4260 R15: 00007ffa3e1c7000
\[  244.268303\]  \</TASK\>

Add a check\_func\_arg\_reg\_off() to the path in which the BPF verifier
verifies the arguments of global function arguments, specifically
those which take an argument of type ARG\_PTR\_TO\_DYNPTR \|
MEM\_RDONLY. Also, process\_dynptr\_func() doesn't appear to perform any
explicit and strict type matching on the supplied register type, so
let's also enforce that a register either type PTR\_TO\_STACK or
CONST\_PTR\_TO\_DYNPTR is by the caller.

## Affected and fixed versions

- Linux: \>= a64bfe618665ea9c722f922cba8c6e3234eac5ac, \< 13663a7c644bf1dedaf461d07252db5d76c8759a; \>= a64bfe618665ea9c722f922cba8c6e3234eac5ac, \< ec2b9a5e11e51fea1bb04c1e7e471952e887e874 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-43910. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-43910.md
Affected: Linux >= a64bfe618665ea9c722f922cba8c6e3234eac5ac, < 13663a7c644bf1dedaf461d07252db5d76c8759a; >= a64bfe618665ea9c722f922cba8c6e3234eac5ac, < ec2b9a5e11e51fea1bb04c1e7e471952e887e874; Linux 6.8
Fixed in: Linux 13663a7c644bf1dedaf461d07252db5d76c8759a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-43910 being exploited?

There is no confirmed exploitation: CVE-2024-43910 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-43910?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-43910?

Linux \>= a64bfe618665ea9c722f922cba8c6e3234eac5ac, \< 13663a7c644bf1dedaf461d07252db5d76c8759a; \>= a64bfe618665ea9c722f922cba8c6e3234eac5ac, \< ec2b9a5e11e51fea1bb04c1e7e471952e887e874; Linux 6.8.

### Is there a fix for CVE-2024-43910?

Yes. Fixed in Linux 13663a7c644bf1dedaf461d07252db5d76c8759a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-43910?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/13663a7c644bf1dedaf461d07252db5d76c8759a>
- patch: <https://git.kernel.org/stable/c/ec2b9a5e11e51fea1bb04c1e7e471952e887e874>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-43910>

HTML: <https://flawdb.com/CVE-2024-43910> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-43910>
