# CVE-2026-139061: udf: validate the device specification EA before using it

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-11-30T13:27:30.308Z
- Modified: 2026-11-30T14:18:12.880Z
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before acc68946934990fc6c127cd494a4d024548a81af; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3ef4b50dc9678af3a212df9a0ce556d0d28aa189; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fa3433b55677f0de2c400c1ad6b0fc7c1c5d5ee8; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d1458fb4b886686072388a7ce1ef6e15c6c37df9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2a479b4380267f0352b2a603496e5dc31f771047; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 66f61439a960dad287fb09d02dab5e53f3e09738; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2959cb1fceb465db85cff47f8159375eb721570b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9a2390959685ac35a58c80c8016120849a2babf6; before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; and 3 more (not affected: from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/acc68946934990fc6c127cd494a4d024548a81af>
- <https://git.kernel.org/stable/c/3ef4b50dc9678af3a212df9a0ce556d0d28aa189>
- <https://git.kernel.org/stable/c/fa3433b55677f0de2c400c1ad6b0fc7c1c5d5ee8>
- <https://git.kernel.org/stable/c/d1458fb4b886686072388a7ce1ef6e15c6c37df9>
- <https://git.kernel.org/stable/c/2a479b4380267f0352b2a603496e5dc31f771047>
- <https://git.kernel.org/stable/c/66f61439a960dad287fb09d02dab5e53f3e09738>
- <https://git.kernel.org/stable/c/2959cb1fceb465db85cff47f8159375eb721570b>
- <https://git.kernel.org/stable/c/9a2390959685ac35a58c80c8016120849a2babf6>

## Sources

- CVE List: [CVE-2026-139061](https://www.cve.org/CVERecord?id=CVE-2026-139061), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139061](https://nvd.nist.gov/vuln/detail/CVE-2026-139061), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139061 · Whole record: https://cve.day/CVE-2026-139061.json · Rebuilt by cve.day 2026-11-30T14:32:40.057Z
