# CVE-2023-52828: linux: In the Linux kernel, the following vulnerability has been resolved:  bpf: Detect IP == ksym.end as part of BPF progra...

CVE-2023-52828 is fixed in 21 products on 1 platform, first by ALAS2023-2023-461, released December 13, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2023-52828
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 13, 2023

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | bpftool-debuginfo amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-debuginfo amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-debuginfo-common-aarch64 amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-debuginfo-common-x86_64 amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-devel amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-headers amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-libbpf amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-libbpf-devel amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-libbpf-static amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-livepatch-6.1.66-91.160 amzn 2023 | 1.0-0.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-modules-extra amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-tools amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-tools-debuginfo amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | kernel-tools-devel amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.64-1 | [DEBIAN-CVE-2023-52828](https://patchblox.com/security/data/fix/linux/debian-cve-2023-52828.md) | May 21, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.6.8-1 | [DEBIAN-CVE-2023-52828](https://patchblox.com/security/data/fix/linux/debian-cve-2023-52828.md) | May 21, 2024 |
| Linux | linux Debian 14 | 6.6.8-1 | [DEBIAN-CVE-2023-52828](https://patchblox.com/security/data/fix/linux/debian-cve-2023-52828.md) | May 21, 2024 |
| Linux | perf amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | perf-debuginfo amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | python3-perf amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |
| Linux | python3-perf-debuginfo amzn 2023 | 6.1.66-91.160.amzn2023 | [ALAS2023-2023-461](https://patchblox.com/security/data/fix/linux/alas2023-2023-461.md) | Dec 13, 2023 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
