PCI/sysfs: Pass the device name length in UTF-16 code units

Summary

CVECVE-2026-138880
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:45 UTC
Updated2026-11-30 14:17:45 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: PCI/sysfs: Pass the device name length in UTF-16 code units Currently, dsm_label_utf16s_to_utf8s() passes the ACPI buffer length to utf16s_to_utf8s() unchanged. The Device Name _DSM may return the device name as a buffer holding a UTF-16 string, and the ACPI length counts bytes while the converter counts wchar_t elements. The converter therefore receives a count twice the number of code units the buffer holds, and that count is its only bound on the input. A NUL code unit ends the conversion early, so a name that carries one is converted correctly and the error stays hidden. ACPICA zeroes the entire result allocation, and the padding placed after the buffer supplies that NUL for most lengths. Lengths that leave no padding, or a single byte of it, do not, and the conversion then runs up to its own length in bytes past the end of the allocation. The bytes beyond the allocation are decoded into the "label" attribute, which is world readable. Divide the buffer length by the size of wchar_t so that the converter receives a count of code units. The division truncates, so the converter is never told to read more bytes than the buffer holds, including for an odd length. Reaching the out of bounds read needs firmware that returns the name as a buffer and omits the terminator.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd bb986cea6055849390980a380c27ac7d70cb782c git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd 2d14662a22b1c9d675e3a768f9933505f3377e1c git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd e52428ea01924ff9b6dae8b19bf1f7b4f9dcbe8b git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd f8392b4ecd9fbefbc6be78cd4c4f876e30927c5a git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd 2e3cab69425d17e8024d6c45f79c8abd56fd0fd8 git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd 3d1e0085b5d24cb1053cf9ccb915376f15f6a4b2 git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd f014772e79ccf8e8f3fa7d6047c93aa0bb8b7271 git Not specified
CNA Linux Linux affected 6058989bad05b82e78baacce69ec14f27a11b5fd af5ca2d75147bf283239e8ef0fbf6e5e0488ca91 git Not specified
CNA Linux Linux affected 2.6.39 Not specified
CNA Linux Linux unaffected 2.6.39 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/f8392b4ecd9fbefbc6be78cd4c4f876e30927c5a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/af5ca2d75147bf283239e8ef0fbf6e5e0488ca91 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f014772e79ccf8e8f3fa7d6047c93aa0bb8b7271 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2d14662a22b1c9d675e3a768f9933505f3377e1c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2e3cab69425d17e8024d6c45f79c8abd56fd0fd8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e52428ea01924ff9b6dae8b19bf1f7b4f9dcbe8b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bb986cea6055849390980a380c27ac7d70cb782c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3d1e0085b5d24cb1053cf9ccb915376f15f6a4b2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report