{"id":"CVE-2026-139030","summary":"ACPI: pfr_update: zero-initialize capability query result","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nACPI: pfr_update: zero-initialize capability query result\n\nquery_capability() copies four ACPI buffers into fixed-size fields using\nthe firmware-supplied lengths.  The existing overflow guard rejects\noversized buffers, but shorter buffers are accepted and leave trailing\nbytes of the stack-allocated cap_hdr uninitialized.  PFRU_IOC_QUERY_CAP\nthen copies the entire structure to userspace.\n\nZero-initialize cap_hdr before querying the firmware.  This preserves the\nexisting handling of short firmware responses while preventing disclosure\nof kernel stack data.  Oversized buffers remain rejected.\n\nA QEMU _DSM returning one-byte buffers reproduced nonzero stack suffix\nbytes in all four fields.  With this change, the ioctl still succeeds and\neach unwritten suffix is zero-filled, while 64-byte buffers continue to\nreturn -EINVAL.","modified":"2026-12-01T21:02:35.879398918Z","published":"2026-11-30T13:27:13.258Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139030.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2cb1b55431ae5eab6efe0135b489a2f03f396540"},{"type":"WEB","url":"https://git.kernel.org/stable/c/501ea019dcfc5af79f7ad0099af687557bef89f9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/76701b325e424f29558230a9340b23f0548550d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8fa4e674495de5233c9065b4ffcc9917c532b24a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d776369a9eded071df83e4738e1572c4c5b912d7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/faed35b5550452f26ec38b12bc6f7aa2d75e0fac"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139030.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139030"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0db89fa243e5edc5de38c88b369e4c3755c5fb74"},{"fixed":"8fa4e674495de5233c9065b4ffcc9917c532b24a"},{"fixed":"faed35b5550452f26ec38b12bc6f7aa2d75e0fac"},{"fixed":"501ea019dcfc5af79f7ad0099af687557bef89f9"},{"fixed":"2cb1b55431ae5eab6efe0135b489a2f03f396540"},{"fixed":"76701b325e424f29558230a9340b23f0548550d3"},{"fixed":"d776369a9eded071df83e4738e1572c4c5b912d7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139030.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.17.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139030.json"}}],"schema_version":"1.9.2"}