CVE-2023-52828
published medium CVSS 3.1 · 6.6bpf: Detect IP == ksym.end as part of BPF program
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux74451e66d516c55e309e8d89a4a1e7596e46aacd to < 6058e4829696412457729a00734969acc6fd1d18 · 74451e66d516c55e309e8d89a4a1e7596e46aacd to < cf353904a82873e952633fcac4385c2fcd3a46e1 · 74451e66d516c55e309e8d89a4a1e7596e46aacd to < aa42a7cb92647786719fe9608685da345883878f · 74451e66d516c55e309e8d89a4a1e7596e46aacd to < 327b92e8cb527ae097961ffd1610c720481947f5 · 74451e66d516c55e309e8d89a4a1e7596e46aacd to < 821a7e4143af115b840ec199eb179537e18af922 · 74451e66d516c55e309e8d89a4a1e7596e46aacd to < 66d9111f3517f85ef2af0337ece02683ce0faf21 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 5.10.202 through 5.10.* (unaffected · semver) · 5.15.140 through 5.15.* (unaffected · semver) · 6.1.64 through 6.1.* (unaffected · semver) · 6.5.13 through 6.5.* (unaffected · semver) · 6.6.3 through 6.6.* (unaffected · semver) · 6.7 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-045 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-033 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-461 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2024-045 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2024-033 |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2024-045 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2024-033 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2024-045 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2024-033 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2024-045 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2024-033 |
| Amazon Linux | AL2023 | kernelaarch64 | Listed in advisory | Not stated | ALAS2023-2023-461 |
| Amazon Linux | AL2023 | kernelsrc | Listed in advisory | Not stated | ALAS2023-2023-461 |
| Amazon Linux | AL2023 | kernelx86_64 | Listed in advisory | Not stated | ALAS2023-2023-461 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.6 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 74451e66d516c55e309e8d89a4a1e7596e46aacd to < 6058e4829696412457729a00734969acc6fd1d18 (affected · git)74451e66d516c55e309e8d89a4a1e7596e46aacd to < cf353904a82873e952633fcac4385c2fcd3a46e1 (affected · git)74451e66d516c55e309e8d89a4a1e7596e46aacd to < aa42a7cb92647786719fe9608685da345883878f (affected · git)74451e66d516c55e309e8d89a4a1e7596e46aacd to < 327b92e8cb527ae097961ffd1610c720481947f5 (affected · git)74451e66d516c55e309e8d89a4a1e7596e46aacd to < 821a7e4143af115b840ec199eb179537e18af922 (affected · git)74451e66d516c55e309e8d89a4a1e7596e46aacd to < 66d9111f3517f85ef2af0337ece02683ce0faf21 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.11 (affected)0 to < 4.11 (unaffected · semver)5.10.202 through 5.10.* (unaffected · semver)5.15.140 through 5.15.* (unaffected · semver)6.1.64 through 6.1.* (unaffected · semver)6.5.13 through 6.5.* (unaffected · semver)6.6.3 through 6.6.* (unaffected · semver)6.7 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
6- https://git.kernel.org/stable/c/327b92e8cb527ae097961ffd1610c720481947f5
- https://git.kernel.org/stable/c/6058e4829696412457729a00734969acc6fd1d18
- https://git.kernel.org/stable/c/66d9111f3517f85ef2af0337ece02683ce0faf21
- https://git.kernel.org/stable/c/821a7e4143af115b840ec199eb179537e18af922
- https://git.kernel.org/stable/c/aa42a7cb92647786719fe9608685da345883878f
- https://git.kernel.org/stable/c/cf353904a82873e952633fcac4385c2fcd3a46e1
Provider assertions
3Linux · cna
bpf: Detect IP == ksym.end as part of BPF program
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 32618e80ee2fd33b727d9884d77fecf8c23853d06a91f3ce28e6cb0ba4be6f9f
- Ingested
- 23 Sep 2026, 08:14:33 UTC
- Source record
- Official CVE record