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-2025-39924

published high CVSS 3.1 · 7.8

erofs: fix invalid algorithm for encoded extents

Published
01 Oct 2025, 08:07:12 UTC
Updated
05 Aug 2026, 12:06:05 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1d191b4ca51d73699cb127386b95ac152af2b930 to < db5d7abd379a8dcf030be8f52f99cadf7e397ba8 · 1d191b4ca51d73699cb127386b95ac152af2b930 to < 131897c65e2b86cf14bec7379f44aa8fbb407526 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.16.8 through 6.16.* (unaffected · semver) · 6.17 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: erofs: fix invalid algorithm for encoded extents The current algorithm sanity checks do not properly apply to new encoded extents. Unify the algorithm check with Z_EROFS_COMPRESSION(_RUNTIME)_MAX and ensure consistency with sbi->available_compr_algs.

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.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Triggering requires a crafted EROFS image to be mounted and a file within it read on the local system (loop/USB/file-backed mount, container image snapshotter, or automounter); erofs parses no remote protocol data, so the attack surface is local file/block input. AC:L - The algorithm index is a plain 4-bit field of the on-disk extent record (`ext->plen >> 28`), so setting it to 7..15 deterministically yields out-of-bounds index 6..14 into the 6-entry `z_erofs_decomp[]` table on every read of that file — no race, no heap grooming, and the global layout is fixed per build. PR:N - The attacker needs no privileges on the target at all — they only need to supply the malicious image file/blob, which is then mounted by an automounter, container image snapshotter, or ordinary user; this matches the scoring of the sibling encoded-extent fix CVE-2026-43166. UI:R - Some agent on the target must mount the attacker-supplied EROFS image and read a file from it before `z_erofs_decompress_pcluster()` indexes the decompressor table. S:U - The out-of-bounds read and subsequent indirect call occur entirely within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The out-of-bounds read pulls arbitrary kernel `.data` contents (up to 72 bytes past `z_erofs_decomp[]`, KASAN-confirmed by syzbot) and the resulting pointer's `->name` field is dereferenced and printed to the kernel log by `erofs_err()`, disclosing out-of-bounds kernel memory as a string. I:H - The out-of-bounds value is treated as a `struct z_erofs_decompressor *` and its `->decompress` member is invoked as a function pointer (`zdata.c:1295`) with an attacker-selectable index — a type-confusion/control-flow-hijack primitive, not merely a data read. A:H - In practice the OOB slot holds a non-decompressor value, so `alg->decompress` is a garbage pointer whose call/dereference causes a general protection fault or oops (KASAN reports global-out-of-bounds), crashing the kernel on every read of the crafted file.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 5.5 medium CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1d191b4ca51d73699cb127386b95ac152af2b930 to < db5d7abd379a8dcf030be8f52f99cadf7e397ba8 (affected · git)1d191b4ca51d73699cb127386b95ac152af2b930 to < 131897c65e2b86cf14bec7379f44aa8fbb407526 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.16.8 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

2

Provider assertions

2

Linux · cna

erofs: fix invalid algorithm for encoded extents

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
cdf16c4a919fcc53f4103be5034c7f8922a73f0a35fb13c239137150155f3a9e
Ingested
23 Sep 2026, 08:47:06 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