# CVE-2023-52828: bpf: Detect IP == ksym.end as part of BPF program

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

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: Low
- **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)
- **Published:** 2024-05-21T15:31:31.501Z
- **Modified:** 2026-06-17T06:43:40.570Z

## Who should check

- Anyone running Linux \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 6058e4829696412457729a00734969acc6fd1d18; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< cf353904a82873e952633fcac4385c2fcd3a46e1; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< aa42a7cb92647786719fe9608685da345883878f; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 327b92e8cb527ae097961ffd1610c720481947f5; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 821a7e4143af115b840ec199eb179537e18af922; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 66d9111f3517f85ef2af0337ece02683ce0faf21
- Anyone running Linux 4.11

## Description

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

bpf: Detect IP == ksym.end as part of BPF program

Now that bpf\_throw kfunc is the first such call instruction that has
noreturn semantics within the verifier, this also kicks in dead code
elimination in unprecedented ways. For one, any instruction following
a bpf\_throw call will never be marked as seen. Moreover, if a callchain
ends up throwing, any instructions after the call instruction to the
eventually throwing subprog in callers will also never be marked as
seen.

The tempting way to fix this would be to emit extra 'int3' instructions
which bump the jited\_len of a program, and ensure that during runtime
when a program throws, we can discover its boundaries even if the call
instruction to bpf\_throw (or to subprogs that always throw) is emitted
as the final instruction in the program.

An example of such a program would be this:

do\_something():
	...
	r0 = 0
	exit

foo():
	r1 = 0
	call bpf\_throw
	r0 = 0
	exit

bar(cond):
	if r1 != 0 goto pc+2
	call do\_something
	exit
	call foo
	r0 = 0  // Never seen by verifier
	exit	//

main(ctx):
	r1 = ...
	call bar
	r0 = 0
	exit

Here, if we do end up throwing, the stacktrace would be the following:

bpf\_throw
foo
bar
main

In bar, the final instruction emitted will be the call to foo, as such,
the return address will be the subsequent instruction (which the JIT
emits as int3 on x86). This will end up lying outside the jited\_len of
the program, thus, when unwinding, we will fail to discover the return
address as belonging to any program and end up in a panic due to the
unreliable stack unwinding of BPF programs that we never expect.

To remedy this case, make bpf\_prog\_ksym\_find treat IP == ksym.end as
part of the BPF program, so that is\_bpf\_text\_address returns true when
such a case occurs, and we are able to unwind reliably when the final
instruction ends up being a call instruction.

## Affected and fixed versions

- Linux: \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 6058e4829696412457729a00734969acc6fd1d18; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< cf353904a82873e952633fcac4385c2fcd3a46e1; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< aa42a7cb92647786719fe9608685da345883878f; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 327b92e8cb527ae097961ffd1610c720481947f5; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 821a7e4143af115b840ec199eb179537e18af922; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 66d9111f3517f85ef2af0337ece02683ce0faf21 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-52828.md
Affected: Linux >= 74451e66d516c55e309e8d89a4a1e7596e46aacd, < 6058e4829696412457729a00734969acc6fd1d18; >= 74451e66d516c55e309e8d89a4a1e7596e46aacd, < cf353904a82873e952633fcac4385c2fcd3a46e1; >= 74451e66d516c55e309e8d89a4a1e7596e46aacd, < aa42a7cb92647786719fe9608685da345883878f; >= 74451e66d516c55e309e8d8…
Fixed in: Linux 6058e4829696412457729a00734969acc6fd1d18, Linux 327b92e8cb527ae097961ffd1610c720481947f5, Linux 821a7e4143af115b840ec199eb179537e18af922, Linux 66d9111f3517f85ef2af0337ece02683ce0faf21

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

There is no confirmed exploitation: CVE-2023-52828 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-52828?

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

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

Linux \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 6058e4829696412457729a00734969acc6fd1d18; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< cf353904a82873e952633fcac4385c2fcd3a46e1; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< aa42a7cb92647786719fe9608685da345883878f; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 327b92e8cb527ae097961ffd1610c720481947f5; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 821a7e4143af115b840ec199eb179537e18af922; \>= 74451e66d516c55e309e8d89a4a1e7596e46aacd, \< 66d9111f3517f85ef2af0337ece02683ce0faf21; Linux 4.11.

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

Yes. Fixed in Linux 6058e4829696412457729a00734969acc6fd1d18, Linux 327b92e8cb527ae097961ffd1610c720481947f5, Linux 821a7e4143af115b840ec199eb179537e18af922, Linux 66d9111f3517f85ef2af0337ece02683ce0faf21. Upgrade Linux to 66d9111f3517f85ef2af0337ece02683ce0faf21 or later.

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

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/6058e4829696412457729a00734969acc6fd1d18>
- patch: <https://git.kernel.org/stable/c/cf353904a82873e952633fcac4385c2fcd3a46e1>
- patch: <https://git.kernel.org/stable/c/aa42a7cb92647786719fe9608685da345883878f>
- patch: <https://git.kernel.org/stable/c/327b92e8cb527ae097961ffd1610c720481947f5>
- patch: <https://git.kernel.org/stable/c/821a7e4143af115b840ec199eb179537e18af922>
- patch: <https://git.kernel.org/stable/c/66d9111f3517f85ef2af0337ece02683ce0faf21>

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

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