# CVE-2023-52920: bpf: support non-r10 register spill/fill to/from stack in precision tracking

> 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-11-05T10:09:30.280Z
- **Modified:** 2026-10-15T22:17:34.987Z

## Who should check

- Anyone running Linux \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< ecc2aeeaa08a355d84d3ca9c3d2512399a194f29; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< 199f0452873741fa4b8d4d88958e929030b2f92b; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< e4da60feca4d35e1a9b03dc0affa3354f9ff45e4; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< 41f6f64e6999a837048b1bd13a2f8742964eca6b
- Anyone running Linux 5.3

## Description

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

bpf: support non-r10 register spill/fill to/from stack in precision tracking

Use instruction (jump) history to record instructions that performed
register spill/fill to/from stack, regardless if this was done through
read-only r10 register, or any other register after copying r10 into it
\*and\* potentially adjusting offset.

To make this work reliably, we push extra per-instruction flags into
instruction history, encoding stack slot index (spi) and stack frame
number in extra 10 bit flags we take away from prev\_idx in instruction
history. We don't touch idx field for maximum performance, as it's
checked most frequently during backtracking.

This change removes basically the last remaining practical limitation of
precision backtracking logic in BPF verifier. It fixes known
deficiencies, but also opens up new opportunities to reduce number of
verified states, explored in the subsequent patches.

There are only three differences in selftests' BPF object files
according to veristat, all in the positive direction (less states).

File                                    Program        Insns (A)  Insns (B)  Insns  (DIFF)  States (A)  States (B)  States (DIFF)
--------------------------------------  -------------  ---------  ---------  -------------  ----------  ----------  -------------
test\_cls\_redirect\_dynptr.bpf.linked3.o  cls\_redirect        2987       2864  -123 (-4.12%)         240         231    -9 (-3.75%)
xdp\_synproxy\_kern.bpf.linked3.o         syncookie\_tc       82848      82661  -187 (-0.23%)        5107        5073   -34 (-0.67%)
xdp\_synproxy\_kern.bpf.linked3.o         syncookie\_xdp      85116      84964  -152 (-0.18%)        5162        5130   -32 (-0.62%)

Note, I avoided renaming jmp\_history to more generic insn\_hist to
minimize number of lines changed and potential merge conflicts between
bpf and bpf-next trees.

Notice also cur\_hist\_entry pointer reset to NULL at the beginning of
instruction verification loop. This pointer avoids the problem of
relying on last jump history entry's insn\_idx to determine whether we
already have entry for current instruction or not. It can happen that we
added jump history entry because current instruction is\_jmp\_point(), but
also we need to add instruction flags for stack access. In this case, we
don't want to entries, so we need to reuse last added entry, if it is
present.

Relying on insn\_idx comparison has the same ambiguity problem as the one
that was fixed recently in \[0\], so we avoid that.

  \[0\] https://patchwork.kernel.org/project/netdevbpf/patch/20231110002638.4168352-3-andrii@kernel.org/

## Affected and fixed versions

- Linux: \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< ecc2aeeaa08a355d84d3ca9c3d2512399a194f29; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< 199f0452873741fa4b8d4d88958e929030b2f92b; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< e4da60feca4d35e1a9b03dc0affa3354f9ff45e4; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< 41f6f64e6999a837048b1bd13a2f8742964eca6b (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- Upgrade Linux to 41f6f64e6999a837048b1bd13a2f8742964eca6b or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52920.md
Affected: Linux >= b5dc0163d8fd78e64a7e21f309cf932fda34353e, < ecc2aeeaa08a355d84d3ca9c3d2512399a194f29; >= b5dc0163d8fd78e64a7e21f309cf932fda34353e, < 199f0452873741fa4b8d4d88958e929030b2f92b; >= b5dc0163d8fd78e64a7e21f309cf932fda34353e, < e4da60feca4d35e1a9b03dc0affa3354f9ff45e4; >= b5dc0163d8fd78e64a7e21f…
Fixed in: Linux 199f0452873741fa4b8d4d88958e929030b2f92b, Linux 41f6f64e6999a837048b1bd13a2f8742964eca6b

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-2023-52920 being exploited?

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

### How serious is CVE-2023-52920?

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

### Which versions are affected by CVE-2023-52920?

Linux \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< ecc2aeeaa08a355d84d3ca9c3d2512399a194f29; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< 199f0452873741fa4b8d4d88958e929030b2f92b; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< e4da60feca4d35e1a9b03dc0affa3354f9ff45e4; \>= b5dc0163d8fd78e64a7e21f309cf932fda34353e, \< 41f6f64e6999a837048b1bd13a2f8742964eca6b; Linux 5.3.

### Is there a fix for CVE-2023-52920?

Yes. Fixed in Linux 199f0452873741fa4b8d4d88958e929030b2f92b, Linux 41f6f64e6999a837048b1bd13a2f8742964eca6b. Upgrade Linux to 41f6f64e6999a837048b1bd13a2f8742964eca6b or later.

### How do I check if I'm affected by CVE-2023-52920?

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/41f6f64e6999a837048b1bd13a2f8742964eca6b>
- other: <https://git.kernel.org/stable/c/ecc2aeeaa08a355d84d3ca9c3d2512399a194f29>
- other: <https://git.kernel.org/stable/c/199f0452873741fa4b8d4d88958e929030b2f92b>
- other: <https://git.kernel.org/stable/c/e4da60feca4d35e1a9b03dc0affa3354f9ff45e4>

## 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-2023-52920>

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