# CVE-2022-49552: bpf: Fix combination of jit blinding and pointers to bpf subprogs.

- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-02-26T02:14:01.696Z
- Modified: 2026-06-17T05:18:25.827Z
- Assigned by: Linux

## Description

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

bpf: Fix combination of jit blinding and pointers to bpf subprogs.

The combination of jit blinding and pointers to bpf subprogs causes:
[   36.989548] BUG: unable to handle page fault for address: 0000000100000001
[   36.990342] #PF: supervisor instruction fetch in kernel mode
[   36.990968] #PF: error_code(0x0010) - not-present page
[   36.994859] RIP: 0010:0x100000001
[   36.995209] Code: Unable to access opcode bytes at RIP 0xffffffd7.
[   37.004091] Call Trace:
[   37.004351]  <TASK>
[   37.004576]  ? bpf_loop+0x4d/0x70
[   37.004932]  ? bpf_prog_3899083f75e4c5de_F+0xe3/0x13b

The jit blinding logic didn't recognize that ld_imm64 with an address
of bpf subprogram is a special instruction and proceeded to randomize it.
By itself it wouldn't have been an issue, but jit_subprogs() logic
relies on two step process to JIT all subprogs and then JIT them
again when addresses of all subprogs are known.
Blinding process in the first JIT phase caused second JIT to miss
adjustment of special ld_imm64.

Fix this issue by ignoring special ld_imm64 instructions that don't have
user controlled constants and shouldn't be blinded.

(As written by CVE List.)

## Affected

- Linux Linux: from 69c087ba6225b574afb6e505b72cb75242a3d844 before a029b02b47dd5bb87a21550d9d9a80cb4dd3f714; from 69c087ba6225b574afb6e505b72cb75242a3d844 before d106a3e96fca30e44081eae9c27aab28fc132a46; from 69c087ba6225b574afb6e505b72cb75242a3d844 before 4b6313cf99b0d51b49aeaea98ec76ca8161ecb80; 5.13 (not affected: before 5.13; from 5.17.13 up to 5.17.*; from 5.18.2 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.13 before 5.17.13; from 5.18 before 5.18.2

## References

- <https://git.kernel.org/stable/c/a029b02b47dd5bb87a21550d9d9a80cb4dd3f714> (patch)
- <https://git.kernel.org/stable/c/d106a3e96fca30e44081eae9c27aab28fc132a46> (patch)
- <https://git.kernel.org/stable/c/4b6313cf99b0d51b49aeaea98ec76ca8161ecb80> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49552 · Whole record: https://cve.day/CVE-2022-49552.json · Rebuilt by cve.day 2026-11-25T22:58:20.725Z
