CVE & CISA-KEV Catalog

CVE-2025-37999

MEDIUM
5.5
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: fs/erofs/fileio: call erofs_onlinefolio_split() after bio_add_folio() If bio_add_folio() fails (because it is full), erofs_fileio_scan_folio() needs to submit the I/O request via erofs_fileio_rq_submit() and allocate a new I/O request with an empty `struct bio`. Then it retries the bio_add_folio() call. However, at this point, erofs_onlinefolio_split() has already been called which increments `folio->private`; the retry will call erofs_onlinefolio_split() again, but there will never be a matching erofs_onlinefolio_end() call. This leaves the folio locked forever and all waiters will be stuck in folio_wait_bit_common(). This bug has been added by commit ce63cb62d794 ("erofs: support unencoded inodes for fileio"), but was practically unreachable because there was room for 256 folios in the `struct bio` - until commit 9f74ae8c9ac9 ("erofs: shorten bvecs[] for file-backed mounts") which reduced the array capacity to 16 folios. It was now trivial to trigger the bug by manually invoking readahead from userspace, e.g.: posix_fadvise(fd, 0, st.st_size, POSIX_FADV_WILLNEED); This should be fixed by invoking erofs_onlinefolio_split() only after bio_add_folio() has succeeded. This is safe: asynchronous completions invoking erofs_onlinefolio_end() will not unlock the folio because erofs_fileio_scan_folio() is still holding a reference to be released by erofs_onlinefolio_end() at the end.

How to fix

Remediation Available
linuxDebian
Fixed in:6.12.29-1CVE-2025-37999
Fixed in:6.12.29-1CVE-2025-37999
linux-aws-6.14Ubuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-gcp-6.14Ubuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-hwe-6.14Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-6.14.0-1010-oemUbuntu
Fixed in:6.14.0-1010.10USN-7699-2
linux-image-6.14.0-1011-awsUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-6.14.0-1011-aws-64kUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-6.14.0-1011-oracleUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-6.14.0-1011-oracle-64kUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-6.14.0-1014-gcpUbuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-image-6.14.0-1014-gcp-64kUbuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-image-6.14.0-28-genericUbuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-6.14.0-28-generic-64kUbuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-awsUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-aws-6.14Ubuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-aws-64kUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-aws-64k-6.14Ubuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-gcpUbuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-image-gcp-6.14Ubuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-image-gcp-64kUbuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-image-gcp-64k-6.14Ubuntu
Fixed in:6.14.0-1014.15~24.04.1USN-7699-1
linux-image-generic-6.14Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-generic-64k-6.14Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-generic-64k-hwe-24.04Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-generic-hwe-24.04Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-oem-24.04aUbuntu
Fixed in:6.14.0-1010.10USN-7699-2
linux-image-oem-24.04cUbuntu
Fixed in:6.14.0-1010.10USN-7699-2
linux-image-oem-6.14Ubuntu
Fixed in:6.14.0-1010.10USN-7699-2
linux-image-oracleUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-oracle-6.14Ubuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-oracle-64kUbuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-oracle-64k-6.14Ubuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1
linux-image-virtual-6.14Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-image-virtual-hwe-24.04Ubuntu
Fixed in:6.14.0-28.28~24.04.1USN-7699-2
linux-oem-6.14Ubuntu
Fixed in:6.14.0-1010.10USN-7699-2
linux-oracle-6.14Ubuntu
Fixed in:6.14.0-1011.11~24.04.1USN-7699-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.15%probability of exploitation in 30 days
4thpercentile

Low risk: more likely to be exploited than 4% of all known CVEs.

References

Embed a live status badge for CVE-2025-37999
CVE-2025-37999 severity badge

Markdown

[![CVE-2025-37999](https://tridentstack.com/cve/badge/CVE-2025-37999.svg)](https://tridentstack.com/cve/CVE-2025-37999)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-37999"><img src="https://tridentstack.com/cve/badge/CVE-2025-37999.svg" alt="CVE-2025-37999"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-14.