# CVE-2024-35903: x86/bpf: Fix IP after emitting call depth accounting

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-19T08:34:56.564Z
- Modified: 2026-06-17T07:35:41.153Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

x86/bpf: Fix IP after emitting call depth accounting

Adjust the IP passed to `emit_patch` so it calculates the correct offset
for the CALL instruction if `x86_call_depth_emit_accounting` emits code.
Otherwise we will skip some instructions and most likely crash.

(As written by CVE List.)

## Affected

- Linux Linux: from b2e9dfe54be4d023124d588d6f03d16a9c0d2507 before 3f9d57c771656bfd651e22edcfdb5f60e62542d4; from b2e9dfe54be4d023124d588d6f03d16a9c0d2507 before 81166178cf0a0062a22b1b3b5368183d39577028; from b2e9dfe54be4d023124d588d6f03d16a9c0d2507 before 9d98aa088386aee3db1b7b60b800c0fde0654a4a; 6.2 (not affected: before 6.2; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.2 before 6.6.26; from 6.7 before 6.8.5; 6.9

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/3f9d57c771656bfd651e22edcfdb5f60e62542d4> (patch)
- <https://git.kernel.org/stable/c/81166178cf0a0062a22b1b3b5368183d39577028> (patch)
- <https://git.kernel.org/stable/c/9d98aa088386aee3db1b7b60b800c0fde0654a4a> (patch)

## Sources

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

---

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