Skip to main content

Linux Kernel EUVDEUVD-2026-38908

| CVE-2026-53040 HIGH
Use After Free (CWE-416)
2026-06-24 Linux GHSA-4j7p-pwp5-4v56
7.1
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged access
  2. Delivery
    Supply crafted OCFS2 image with bad bg_bits
  3. Exploit
    Image mounted on host
  4. Execution
    Issue OCFS2_IOC_INFO with NON_COHERENT flag
  5. Persist
    Bitmap walk reads past buffer end
  6. Impact
    Leak kernel memory or panic system

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local access and the ability to have a maliciously crafted OCFS2 filesystem mounted, then invoking the OCFS2_IOC_INFO ioctl with the OCFS2_INFO_FL_NON_COHERENT flag set - the non-coherent path is the specific trigger, because the coherent path validates group descriptors and is not affected. The crafted image must contain a group descriptor with an impossible on-disk bg_bits value exceeding the format's bitmap capacity. Limiting factors: the kernel must be built with OCFS2 support; the attacker needs low-level local access (PR:L) and no user interaction; exploitation depends on the host mounting an attacker-controlled image, so systems that never mount untrusted OCFS2 volumes and disallow unprivileged mounts are effectively not exposed. Not remotely exploitable (AV:L).

Impact

The CVSS 3.1 base score is 7.1 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H), reflecting a local, low-complexity, low-privilege bug with high confidentiality (kernel memory disclosure) and high availability (KASAN-detected use-after-free/OOB read can panic the kernel) impact and no integrity impact. EPSS is low (0.18%, 7th percentile) and the issue is not in CISA KEV, which is expected: this is local-only and requires presenting a crafted OCFS2 filesystem, so it is not internet-exploitable and unlikely to see broad opportunistic exploitation. The practical limiting factor is that an attacker must be able to mount or supply a malicious OCFS2 image (or already have low-privileged access to a host where such an image is mounted) - environments that auto-mount untrusted removable/USB filesystems or grant unprivileged mount capability are the realistic exposure. Signals are consistent rather than conflicting; the CVSS local vector matches the description's ioctl-on-mounted-filesystem trigger. No POC and no active exploitation evidence were found in the provided data, so this is a real but moderate, niche-deployment priority - high for OCFS2 cluster operators, low for general fleets.

Exploit ScenarioDerived

A low-privileged local user crafts an OCFS2 image with an out-of-range bg_bits group-descriptor value, gets it mounted (e.g. via a USB device on a host that auto-mounts, or on a system permitting unprivileged mounts), then calls the OCFS2_IOC_INFO ioctl with OCFS2_INFO_FL_NON_COHERENT to trigger the unvalidated freefrag bitmap walk, reading kernel memory beyond the buffer to leak data or panic the kernel. No public POC is identified, and the local attack vector with low complexity makes this straightforward once a malicious image is mounted.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 28, 2026

Out-of-bounds memory read in the Linux kernel's OCFS2 filesystem driver allows a local user to leak kernel memory or crash the system by issuing the OCFS2_IOC_INFO ioctl with the OCFS2_INFO_FL_NON_COHERENT flag against a crafted or malicious OCFS2 image. The non-coherent freefrag scan path trusts the on-disk bg_bits group-descriptor field as a bitmap limit without validation, driving the bitmap walk past the end of the block buffer. No public exploit identified at time of analysis, and EPSS is low (0.18%, 7th percentile), consistent with a local, filesystem-mount-dependent kernel bug rather than a remotely scanned threat.

RemediationAI

Apply the vendor-released patch by upgrading to a fixed kernel for your branch: 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, or mainline 7.1 or later (the fix adds ocfs2_group_bitmap_size() validation, rejects descriptors whose bg_bits exceeds capacity, and clamps the scan). The corresponding stable commits are at git.kernel.org (e.g. https://git.kernel.org/stable/c/3e167e230d19cd273108bab2e4c61800fc335ae8) and the advisory is https://nvd.nist.gov/vuln/detail/CVE-2026-53040. Where immediate patching is not possible, the practical compensating controls are: do not mount untrusted or attacker-supplied OCFS2 images, and disable automatic mounting of removable/external filesystems (trade-off: breaks convenience auto-mount workflows); restrict the CAP_SYS_ADMIN/mount capability so unprivileged users cannot mount filesystems (trade-off: may affect containers or user-mount tooling); and if OCFS2 is not required, blacklist the ocfs2 kernel module to eliminate the attack surface entirely (trade-off: unavailable only where OCFS2 is actually used).

Affected VersionsENISA

Linux patch: 6.1.175
Linux patch: 0
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <e0dcf12665d6dde37facf790803cdad44d5c328c
Linux patch: 7.0.10
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <bb3c54d1e71578521111f1a1ee7d5f4761a242b8
Linux 3.0
Linux patch: 6.18.33
Linux patch: 7.1
Linux patch: 5.10.258
Linux patch: 5.15.209
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <8f687eeed3da3012152b0f9473f578869de0cd7b
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <05d0cbea41167b6b061c6ba5b70ee5a9a7a24c9e
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <0998674eec138c55e9e349b9cbd9dbc5129a9cc8
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <4c2d62ddde8928db12f4608950b67a20e67deab2
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <bb2906a1065ec28de021bac2ed03f2624edd7d07
Linux patch: 6.6.141
Linux patch: 6.12.91
Linux d24a10b9f8ed548981696cd36e2b4f16e6f360b1 <3e167e230d19cd273108bab2e4c61800fc335ae8

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OCFS2 (Oracle Cluster File System v2) is a shared-disk cluster filesystem in the mainline Linux kernel. Free-space fragmentation reporting via the OCFS2_IOC_INFO ioctl walks allocator group descriptors and tests their allocation bitmaps. There are two code paths: the coherent path reads group descriptors through ocfs2_read_group_descriptor(), which validates the descriptor before use, while the non-coherent path (OCFS2_INFO_FL_NON_COHERENT) uses ocfs2_read_blocks_sync() and skips that validation. In ocfs2_info_freefrag_scan_chain() (fs/ocfs2/ioctl.c) the on-disk bg_bits field is used directly as the bitmap scan limit, so an impossible bg_bits value walks test_bit_le past the end of the allocated block. The root cause is a missing bounds/consistency check on attacker-controlled on-disk metadata (an out-of-bounds read / improper validation class; the input tags it as Buffer Overflow, though it is read-side). CPE coverage is cpe:2.3:a:linux:linux, i.e. the upstream Linux kernel. CWE was not assigned (N/A) in the source data.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 7.1 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 7.1 HIGH

Local trigger via ioctl on a mounted crafted image (AV:L, PR:L, AC:L); OOB read leaks kernel memory (C:H) and can panic (A:H); no integrity impact and no scope change.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jun 28, 2026 - 08:22 NVD
7.1 (HIGH)
Patch available
Jun 24, 2026 - 18:02 EUVD
CVE Published
Jun 24, 2026 - 16:29 cve.org
HIGH 7.1
CVE Published
Jun 24, 2026 - 16:29 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: validate bg_bits during freefrag scan

[BUG] A crafted filesystem can trigger an out-of-bounds bitmap walk when OCFS2_IOC_INFO is issued with OCFS2_INFO_FL_NON_COHERENT.

BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: use-after-free in test_bit_le include/asm-generic/bitops/le.h:21 [inline] BUG: KASAN: use-after-free in ocfs2_info_freefrag_scan_chain fs/ocfs2/ioctl.c:495 [inline] BUG: KASAN: use-after-free in ocfs2_info_freefrag_scan_bitmap fs/ocfs2/ioctl.c:588 [inline] BUG: KASAN: use-after-free in ocfs2_info_handle_freefrag fs/ocfs2/ioctl.c:662 [inline] BUG: KASAN: use-after-free in ocfs2_info_handle_request+0x1c66/0x3370 fs/ocfs2/ioctl.c:754 Read of size 8 at addr ffff888031bce000 by task syz.0.636/1435 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xbe/0x130 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xd1/0x650 mm/kasan/report.c:482 kasan_report+0xfb/0x140 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x11c/0x200 mm/kasan/generic.c:200 __kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] test_bit_le include/asm-generic/bitops/le.h:21 [inline] ocfs2_info_freefrag_scan_chain fs/ocfs2/ioctl.c:495 [inline] ocfs2_info_freefrag_scan_bitmap fs/ocfs2/ioctl.c:588 [inline] ocfs2_info_handle_freefrag fs/ocfs2/ioctl.c:662 [inline] ocfs2_info_handle_request+0x1c66/0x3370 fs/ocfs2/ioctl.c:754 ocfs2_info_handle+0x18d/0x2a0 fs/ocfs2/ioctl.c:828 ocfs2_ioctl+0x632/0x6e0 fs/ocfs2/ioctl.c:913 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x197/0x1e0 fs/ioctl.c:583 ...

[CAUSE] ocfs2_info_freefrag_scan_chain() uses on-disk bg_bits directly as the bitmap scan limit. The coherent path reads group descriptors through ocfs2_read_group_descriptor(), which validates the descriptor before use. The non-coherent path uses ocfs2_read_blocks_sync() instead and skips that validation, so an impossible bg_bits value can drive the bitmap walk past the end of the block.

[FIX] Compute the bitmap capacity from the filesystem format with ocfs2_group_bitmap_size(), report descriptors whose bg_bits exceeds that limit, and clamp the scan to the computed capacity. This keeps the freefrag report going while avoiding reads beyond the buffer.

Executive ViewAI

Why It Matters

A memory disclosure and denial-of-service vulnerability in the Linux kernel's OCFS2 filesystem driver (CVSS 7.1) affects organizations operating Oracle clustered filesystems or OCFS2-based storage infrastructure. Local users with filesystem access can leak kernel memory or crash affected systems by mounting a malicious OCFS2 image. While real-world exploitation risk is minimal (EPSS 0.2%) due to the local-only attack vector, this threatens system availability and data confidentiality for environments dependent on OCFS2 cluster storage.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel runs on a huge fraction of production systems
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.168 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.149 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.197 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.145 Affected
Image SLES15-SP7-Azure-3P Image SLES15-SP7-Azure-Basic Image SLES15-SP7-Azure-Standard Image SLES15-SP7-HPC-Azure Affected
Image SLES15-SP7-BYOS-Azure Image SLES15-SP7-BYOS-GCE Image SLES15-SP7-CHOST-BYOS-Aliyun Image SLES15-SP7-CHOST-BYOS-Azure Image SLES15-SP7-CHOST-BYOS-EC2 Image SLES15-SP7-CHOST-BYOS-GCE Image SLES15-SP7-CHOST-BYOS-GDC Image SLES15-SP7-CHOST-BYOS-SAP-CCloud Image SLES15-SP7-EC2 Image SLES15-SP7-EC2-ECS-HVM Image SLES15-SP7-GCE Image SLES15-SP7-HPC-BYOS-Azure Image SLES15-SP7-HPC-BYOS-EC2 Image SLES15-SP7-HPC-BYOS-GCE Image SLES15-SP7-Hardened-BYOS-Azure Image SLES15-SP7-Hardened-BYOS-EC2 Image SLES15-SP7-Hardened-BYOS-GCE Image SLES15-SP7-SAPCAL-Azure Image SLES15-SP7-SAPCAL-EC2 Image SLES15-SP7-SAPCAL-GCE Affected
Image SLES15-SP7-SAP-Azure Image SLES15-SP7-SAP-Azure-3P Image SLES15-SP7-SAP-BYOS-Azure Image SLES15-SP7-SAP-BYOS-EC2 Image SLES15-SP7-SAP-BYOS-GCE Image SLES15-SP7-SAP-EC2 Image SLES15-SP7-SAP-GCE Image SLES15-SP7-SAP-Hardened-Azure Image SLES15-SP7-SAP-Hardened-BYOS-Azure Image SLES15-SP7-SAP-Hardened-BYOS-EC2 Image SLES15-SP7-SAP-Hardened-BYOS-GCE Image SLES15-SP7-SAP-Hardened-GCE Affected

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-53040 ADVISORY https://ubuntu.com/security/notices/USN-8566-1 ADVISORY https://ubuntu.com/security/notices/USN-8567-1 ADVISORY https://ubuntu.com/security/notices/USN-8568-1 ADVISORY https://vuldb.com/vuln/373380 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22511/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22512/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22521/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22522/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22665/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22666/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22699/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22742/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:22769/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2799/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2800/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2914/ REF https://git.kernel.org/stable/c/05d0cbea41167b6b061c6ba5b70ee5a9a7a24c9e REF https://git.kernel.org/stable/c/0998674eec138c55e9e349b9cbd9dbc5129a9cc8 REF https://git.kernel.org/stable/c/3e167e230d19cd273108bab2e4c61800fc335ae8 REF https://git.kernel.org/stable/c/4c2d62ddde8928db12f4608950b67a20e67deab2 REF https://git.kernel.org/stable/c/8f687eeed3da3012152b0f9473f578869de0cd7b REF https://git.kernel.org/stable/c/bb2906a1065ec28de021bac2ed03f2624edd7d07 REF https://git.kernel.org/stable/c/bb3c54d1e71578521111f1a1ee7d5f4761a242b8 REF https://git.kernel.org/stable/c/e0dcf12665d6dde37facf790803cdad44d5c328c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy