CVE-2026-139389
ocfs2: validate chunk and block counts of the local quota file
Check your servers for CVE-2026-139389
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139389 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: validate chunk and block counts of the local quota file
ocfs2_local_read_info() trusts dqi_chunks and dqi_blocks from the local quota file header. If dqi_blocks is too small, ocfs2_extend_local_quota_file() computes a bogus chunk length, extends the file, and maps logical block dqi_blocks, which is already in the inode's metadata cache (the header or a chunk header read at mount). sb_getblk() returns that cached buffer and ocfs2_set_new_buffer_uptodate() hits BUG_ON(ocfs2_buffer_cached()):
kernel BUG at fs/ocfs2/uptodate.c:509! ocfs2_extend_local_quota_file+0x45c/0x1100 ocfs2_create_local_dquot+0x8ac/0xb50 ocfs2_acquire_dquot+0x614/0xae0 ocfs2_get_init_inode+0xe9/0x1b0 ocfs2_mkdir+0x174/0x430
ocfs2_local_quota_add_chunk() has the same exposure.
Reject a header whose counts don't fit the chunk layout or exceed i_size.
Reproduced with a crafted image (dqi_blocks = 1, chunk 0 dqc_free = 0); syzbot has no reproducer for this report.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.73% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before e1ea7a8462b9c3495bd51d2953b4c6f767864ba6 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before cff711aeeaebe97c890811570432c1a9b38b0507 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before 3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before 0a6b9398588bc689e1bd7753b61cf2f7880ec3a2 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before a57473aba28a1720fdd3ab7f1d9a229d638a6e56 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before 784bafa48e475fe824556edc6f77133869d178e0 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before 285d5188187af8f91e7d866f3e524527cde7b181 affected from 9e33d69f553aaf11377307e8d6f82deb3385e351, before b10ef5d2c2083ea4c40e963c10a73a154793c5d4
Other versions: unaffected
|
| Linux |
affected 2.6.29 unaffected before 2.6.29 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139389 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139389
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139389
trivy image --scanners vuln IMAGE | grep CVE-2026-139389
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e1ea7a8462b9c3495bd51d2953b4c6f767864ba6 git.kernel.org
- https://git.kernel.org/stable/c/cff711aeeaebe97c890811570432c1a9b38b0507 git.kernel.org
- https://git.kernel.org/stable/c/3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1 git.kernel.org
- https://git.kernel.org/stable/c/0a6b9398588bc689e1bd7753b61cf2f7880ec3a2 git.kernel.org
- https://git.kernel.org/stable/c/a57473aba28a1720fdd3ab7f1d9a229d638a6e56 git.kernel.org
- https://git.kernel.org/stable/c/784bafa48e475fe824556edc6f77133869d178e0 git.kernel.org
- https://git.kernel.org/stable/c/285d5188187af8f91e7d866f3e524527cde7b181 git.kernel.org
- https://git.kernel.org/stable/c/b10ef5d2c2083ea4c40e963c10a73a154793c5d4 git.kernel.org
Source: the record CVE-2026-139389 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse