# CVE-2023-52462: bpf: fix check for attempt to corrupt spilled pointer

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-23T14:46:22.900Z
- **Modified:** 2026-06-17T06:42:46.573Z

## Who should check

- Anyone running Linux \>= cdd73a5ed0840da88a3b9ad353f568e6f156d417, \< 2757f17972d87773b3677777f5682510f13c66ef; \>= 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, \< 67e6707f07354ed1acb4e65552e97c60cf9d69cf; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< fc3e3c50a0a4cac1463967c110686189e4a59104; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< 8dc15b0670594543c356567a1a45b0182ec63174; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< 40617d45ea05535105e202a8a819e388a2b1f036; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< ab125ed3ec1c10ccc36bc98c7a4256ad114a3dae; \>= 5.10.163, \< 5.10.209; \>= 5.15.86, \< 5.15.148
- Anyone running Linux 5.16

## Description

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

bpf: fix check for attempt to corrupt spilled pointer

When register is spilled onto a stack as a 1/2/4-byte register, we set
slot\_type\[BPF\_REG\_SIZE - 1\] (plus potentially few more below it,
depending on actual spill size). So to check if some stack slot has
spilled register we need to consult slot\_type\[7\], not slot\_type\[0\].

To avoid the need to remember and double-check this in the future, just
use is\_spilled\_reg() helper.

## Affected and fixed versions

- Linux: \>= cdd73a5ed0840da88a3b9ad353f568e6f156d417, \< 2757f17972d87773b3677777f5682510f13c66ef; \>= 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, \< 67e6707f07354ed1acb4e65552e97c60cf9d69cf; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< fc3e3c50a0a4cac1463967c110686189e4a59104; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< 8dc15b0670594543c356567a1a45b0182ec63174; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< 40617d45ea05535105e202a8a819e388a2b1f036; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< ab125ed3ec1c10ccc36bc98c7a4256ad114a3dae; \>= 5.10.163, \< 5.10.209; \>= 5.15.86, \< 5.15.148 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 5.15.148 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-52462. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52462.md
Affected: Linux >= cdd73a5ed0840da88a3b9ad353f568e6f156d417, < 2757f17972d87773b3677777f5682510f13c66ef; >= 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, < 67e6707f07354ed1acb4e65552e97c60cf9d69cf; >= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, < fc3e3c50a0a4cac1463967c110686189e4a59104; >= 27113c59b6d0a587b29ae72…
Fixed in: Linux 2757f17972d87773b3677777f5682510f13c66ef, Linux 67e6707f07354ed1acb4e65552e97c60cf9d69cf, Linux 8dc15b0670594543c356567a1a45b0182ec63174, Linux 40617d45ea05535105e202a8a819e388a2b1f036, Linux 5.10.209, Linux 5.15.148

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-52462 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= cdd73a5ed0840da88a3b9ad353f568e6f156d417, \< 2757f17972d87773b3677777f5682510f13c66ef; \>= 07c286c10a9cedbd71f20269ff3a4e73d9aab2fe, \< 67e6707f07354ed1acb4e65552e97c60cf9d69cf; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< fc3e3c50a0a4cac1463967c110686189e4a59104; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< 8dc15b0670594543c356567a1a45b0182ec63174; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< 40617d45ea05535105e202a8a819e388a2b1f036; \>= 27113c59b6d0a587b29ae72d4ff3f832f58b0651, \< ab125ed3ec1c10ccc36bc98c7a4256ad114a3dae; \>= 5.10.163, \< 5.10.209; \>= 5.15.86, \< 5.15.148; Linux 5.16.

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

Yes. Fixed in Linux 2757f17972d87773b3677777f5682510f13c66ef, Linux 67e6707f07354ed1acb4e65552e97c60cf9d69cf, Linux 8dc15b0670594543c356567a1a45b0182ec63174, Linux 40617d45ea05535105e202a8a819e388a2b1f036, Linux 5.10.209, Linux 5.15.148. Upgrade Linux to 5.15.148 or later.

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

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/2757f17972d87773b3677777f5682510f13c66ef>
- patch: <https://git.kernel.org/stable/c/67e6707f07354ed1acb4e65552e97c60cf9d69cf>
- patch: <https://git.kernel.org/stable/c/fc3e3c50a0a4cac1463967c110686189e4a59104>
- patch: <https://git.kernel.org/stable/c/8dc15b0670594543c356567a1a45b0182ec63174>
- patch: <https://git.kernel.org/stable/c/40617d45ea05535105e202a8a819e388a2b1f036>
- patch: <https://git.kernel.org/stable/c/ab125ed3ec1c10ccc36bc98c7a4256ad114a3dae>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html>

## 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-52462>

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