CVE-2026-139061

udf: validate the device specification EA before using it

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

udf: validate the device specification EA before using it

udf_get_extendedattr() bounds an extended attribute only against
struct genericFormat, which is 12 bytes. A type-12 device
specification is struct deviceSpec, which is 24 bytes plus a flexible
impUse array. Thus a corrupted filesystem can contain extended attribute
that is accepted by udf_get_extendedattr() but udf_write_inode() or
udf_read_inode() may access beyond the end of provided buffer.

Provide a udf_device_spec_valid() check to validate correctness of
extended attribute that is a deviceSpec. While here, check the result of
udf_add_extendedattr() before dereferencing it as it can return NULL in
case of error.

[JK: Removed duplicated validity checks]

Analysis

AI-generated

Technical impact

The Linux kernel UDF subsystem incorrectly bounds mixed extended attributes, allowing an attacker to embed a malformed device specification that passes initial checks. When such an attribute is later read or written, the kernel accesses memory beyond the allocated buffer, potentially corrupting kernel memory. This memory corruption can be leveraged to execute arbitrary code or to cause a system crash, thereby impacting confidentiality, integrity, and availability of the affected system.

Affected Systems

The vulnerability affects all Linux kernel releases in which the UDF module is enabled. No specific kernel version range is provided, and the issue is tied to the UDF filesystem implementation in the kernel. Systems that mount UDF volumes or process UDF files are potentially impacted.

Risk and Exploitability

The absence of an EPSS score and the lack of a KEV listing leave the exact exploitation likelihood uncertain, but the vulnerability requires a pre‑existing corrupted UDF filesystem, meaning a local or privileged attacker is needed to prepare the malicious volume. Once mounted, the kernel will perform an out‑of‑bounds read or write during inode operations, providing a clear path to a memory overwrite. Given the nature of the bug and the potential for arbitrary code execution, the risk is high, and the skip of proper checks indicates a likely exploitability if an attacker can supply the malformed UDF volume.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the fix adding udf_device_spec_valid() and checking udf_add_extendedattr() results before dereferencing
  • If updating is not possible, disable UDF filesystem support or refuse to mount UDF volumes to eliminate the attack surface
  • Run filesystem integrity checks (e.g., fsck or custom UDF validators) on UDF volumes and monitor logs for signs of buffer overflows or kernel panic events

Generated by OpenCVE AI on November 30, 2026 at 19:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-129
CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: udf: validate the device specification EA before using it udf_get_extendedattr() bounds an extended attribute only against struct genericFormat, which is 12 bytes. A type-12 device specification is struct deviceSpec, which is 24 bytes plus a flexible impUse array. Thus a corrupted filesystem can contain extended attribute that is accepted by udf_get_extendedattr() but udf_write_inode() or udf_read_inode() may access beyond the end of provided buffer. Provide a udf_device_spec_valid() check to validate correctness of extended attribute that is a deviceSpec. While here, check the result of udf_add_extendedattr() before dereferencing it as it can return NULL in case of error. [JK: Removed duplicated validity checks]
Title udf: validate the device specification EA before using it
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-129

    Improper Validation of Array Index

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM