udf: validate the device specification EA before using it

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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]

ProductVersions
Linux Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before acc68946934990fc6c127cd494a4d024548a81af Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3ef4b50dc9678af3a212df9a0ce556d0d28aa189 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fa3433b55677f0de2c400c1ad6b0fc7c1c5d5ee8 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before d1458fb4b886686072388a7ce1ef6e15c6c37df9 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2a479b4380267f0352b2a603496e5dc31f771047 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 66f61439a960dad287fb09d02dab5e53f3e09738 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2959cb1fceb465db85cff47f8159375eb721570b Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 9a2390959685ac35a58c80c8016120849a2babf6 Affectedbefore 5.10.275 Affectedbefore 5.15.226 Affectedbefore 6.1.193 Affectedbefore 6.6.163 Affectedbefore 6.12.118 Affectedbefore 6.18.64 Affectedbefore 7.3.4 Affected
Linux Linux5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.