Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138941

published

powerpc/bpf: fix buffer overflow in JIT for large BPF programs

Published
30 Nov 2026, 13:26:24 UTC
Updated
30 Nov 2026, 13:26:24 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < b17348a6187b348bc30b74dbc207b98c72dd7b26 · 0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 033a1e4f56c29b4244d4f504f4b7704dfefa7afd · 0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 5d79818c18172beedb9e1121496ee15bd195ff93 · 0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 3b9710e1d312bf0c3b48e1e1f121255ff3346e25 · 0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 0e7ec5fe2fc914e611cd0f9cfeb76a17ffbf5d6f · 0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 78ce55b7913a78e1687306668e078b86bc6508ee · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: powerpc/bpf: fix buffer overflow in JIT for large BPF programs During size calculation in pass-0, exit_addr is 0 since addrs[fp->len] is not yet populated. bpf_jit_emit_exit_insn() treats a zero exit_addr as in-range and skips bpf_jit_build_epilogue(), so the alternate inline epilogue instructions are not counted in alloclen. In later passes, if the real exit_addr falls outside the 32MB branch range, the full inline epilogue is emitted into the already-allocated buffer, writing past its end and corrupting adjacent memory. Fix by ensuring exit_addr is non-zero before treating it as in-range, so pass-0 always falls through to bpf_jit_build_epilogue() and conservatively accounts for all epilogue instructions in alloclen. Also range check alt_exit_addr directly in the else-if condition. Since exit_addr handling now falls through to the epilogue, two related issues in bpf_int_jit_compile() must also be addressed: 1. Reset cgctx.alt_exit_addr before the second size-calculation pass. Without this, a stale alt_exit_addr from the first pass causes the second pass to emit a single jump instead of the full epilogue, undercounting alloclen and reintroducing the overflow. 2. Recompute addrs[fp->len] at the end of each code-generation pass. The larger pass-0 body can shrink in later passes as out-of-range exits settle into in-range jumps; a stale addrs[fp->len] would leave exit branches targeting past the real (shrunken) epilogue. Because shrinkage in a later pass can move the epilogue offset, the fixed two-pass loop is no longer sufficient: an exit that was out of range in an earlier pass may fall in range once the epilogue offset shrinks, shrinking the body further and overwriting the start of the epilogue. Convert the code-generation loop to iterate until the program size converges, bounded by CODEGEN_MAX_PASSES, and fail the JIT if it does not converge.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < b17348a6187b348bc30b74dbc207b98c72dd7b26 (affected · git)0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 033a1e4f56c29b4244d4f504f4b7704dfefa7afd (affected · git)0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 5d79818c18172beedb9e1121496ee15bd195ff93 (affected · git)0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 3b9710e1d312bf0c3b48e1e1f121255ff3346e25 (affected · git)0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 0e7ec5fe2fc914e611cd0f9cfeb76a17ffbf5d6f (affected · git)0ffdbce6f4a89bb7c0002904d6438ec83cf05ce7 to < 78ce55b7913a78e1687306668e078b86bc6508ee (affected · git)Default: unaffected Linux · cna
Linux Linux 5.18 (affected)0 to < 5.18 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

powerpc/bpf: fix buffer overflow in JIT for large BPF programs

Provenance

Schema
5.2
Searchable
yes
Content hash
c2215760f52d3f8981c81483d404f639f90e6b1892eacfd457520b59949a1f08
Ingested
30 Nov 2026, 13:36:39 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected