# CVE-2024-43838: bpf: fix overflow check in adjust_jmp_off()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-08-17T09:21:54.435Z
- Modified: 2026-06-17T07:51:48.747Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

bpf: fix overflow check in adjust_jmp_off()

adjust_jmp_off() incorrectly used the insn->imm field for all overflow check,
which is incorrect as that should only be done or the BPF_JMP32 | BPF_JA case,
not the general jump instruction case. Fix it by using insn->off for overflow
check in the general case.

(As written by CVE List.)

## Affected

- Linux Linux: from 5337ac4c9b807bc46baa0713121a0afa8beacd70 before 345652866a8869825a2a582ee5a28d75141f184a; from 5337ac4c9b807bc46baa0713121a0afa8beacd70 before 4a04b4f0de59dd5c621e78f15803ee0b0544eeb8; e47a1a791d32bd6c8f71d23c84294f2c053553a1; from 6.9.8 before 6.10; 6.10 (not affected: before 6.10; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.9.8 before 6.10; from 6.10 before 6.10.3

## References

- <https://git.kernel.org/stable/c/345652866a8869825a2a582ee5a28d75141f184a> (patch)
- <https://git.kernel.org/stable/c/4a04b4f0de59dd5c621e78f15803ee0b0544eeb8> (patch)

## Sources

- CVE List: [CVE-2024-43838](https://www.cve.org/CVERecord?id=CVE-2024-43838), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-43838](https://nvd.nist.gov/vuln/detail/CVE-2024-43838), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-43838 · Whole record: https://cve.day/CVE-2024-43838.json · Rebuilt by cve.day 2026-11-25T22:58:44.497Z
