{"id":41112,"date":"2026-10-19T00:32:12","date_gmt":"2026-10-18T16:32:12","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98640"},"modified":"2026-10-19T00:32:12","modified_gmt":"2026-10-18T16:32:12","slug":"cve-2026-98640","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98640","title":{"rendered":"CVE-2026-98640 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nHID: amd_sfh: Validat"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>HID: amd_sfh: Validate PCI BAR size before mapping<\/p>\n<p>The amd_sfh driver maps PCI BAR 2 using pcim_iomap_regions() and<br \/>\nsubsequently accesses MMIO registers at offsets up to 0x10958 (e.g.,<br \/>\nAMD_P2C_MSG3 at 0x1068C). However, the driver never validates that the BAR<br \/>\nsize is large enough to cover these accesses. If the driver is bound to a<br \/>\ndevice with a smaller BAR 2, this leads to an out-of-bounds memory access<br \/>\nand a page fault during the probe function.<\/p>\n<p>For example, a page fault can occur when reading from privdata-&gt;mmio +<br \/>\nAMD_P2C_MSG3 in mp2_select_ops():<\/p>\n<p>  BUG: unable to handle page fault for address: ffffc9000390368c<br \/>\n  PGD 100000067 P4D 100000067 PUD 1012c1067 PMD 105b64067 PTE 0<br \/>\n  Oops: Oops: 0000 [#1] SMP KASAN NOPTI<br \/>\n  RIP: 0010:readl arch\/x86\/include\/asm\/io.h:59 [inline]<br \/>\n  RIP: 0010:mp2_select_ops drivers\/hid\/amd-sfh-hid\/amd_sfh_pcie.c:282<br \/>\n  [inline]<br \/>\n  RIP: 0010:amd_mp2_pci_probe+0x337\/0x5f0<br \/>\n  drivers\/hid\/amd-sfh-hid\/amd_sfh_pcie.c:487<br \/>\n  Call Trace:<\/p>\n<p>   local_pci_probe drivers\/pci\/pci-driver.c:332 [inline]<br \/>\n   pci_call_probe drivers\/pci\/pci-driver.c:394 [inline]<br \/>\n   __pci_device_probe drivers\/pci\/pci-driver.c:455 [inline]<br \/>\n   pci_device_probe+0x431\/0xc90 drivers\/pci\/pci-driver.c:489<\/p>\n<p>Fix this by verifying that the length of BAR 2 is at least 128KB before<br \/>\nattempting to map it. Since the maximum accessed offset is 0x10958, and PCI<br \/>\nBAR sizes are powers of 2, any legitimate hardware will have a BAR size of<br \/>\nat least 128KB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>HID: amd_sfh: Validate PCI BAR size before mapping<\/p>\n<p>The amd_sfh driver maps PCI BAR 2 using pcim_iomap_regions() and<br \/>\nsubsequently a<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41112","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}