KernelScan.io

HIGH Introduced in 2.6.22

ata PortAddr Corruption

CVE-2026-98262

CVSS 7.7 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: ata: libahci: clear PxCLBU and PxFBU for AHCI_HFLAG_32BIT_ONLY A user reported that commit 105c42566a55 ("ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585") made the JMicron JMB585 unusable on his board. The failure is seen as soon as the ahci driver is probed, and booting with iommu=off does not solve the problem. Looking at the AHCI specification, PxCLBU and PxFBU are both read only '0' for HBAs that do not support 64-bit addressing. For HBAs that do support 64-bit addressing, the registers are read write, with a reset value that is Implementation Specific. When using the AHCI_HFLAG_32BIT_ONLY flag, the HBA does support 64-bit addressing, and a 32-bit DMA mask is set by simply clearing HOST_CAP_64. Thus, in this case, we need to explicitly clear the registers to 0.

02

Engine v0.7.0

Risk summary

A bug in the AHCI driver causes incorrect DMA addresses when a 32-bit-only DMA quirk is applied to certain AHCI controllers (JMicron JMB582/JMB585, AMD SB600). The upper 32 bits of command-list and FIS-receive DMA address registers are left at hardware-defined reset values instead of being cleared to zero, causing the controller to use corrupted 64-bit DMA addresses. This renders the storage device unusable and could theoretically direct DMA to unintended physical memory on systems without an IOMMU.

Affecteddrivers/ata/libahci.c (AHCI/SATA driver)

Vulnerability analysis

When the AHCI driver applies a 32-bit-only quirk to controllers that claim 64-bit support but are buggy, it clears the 64-bit capability flag but leaves the upper halves of the DMA address registers at their hardware-defined reset values, which may be non-zero. The controller then uses a corrupted 64-bit DMA address, causing the storage device to malfunction and potentially directing DMA to unintended physical memory. The fix explicitly zeros these upper address registers whenever the 32-bit-only quirk is active, so the controller uses only the lower 32 bits. The misconfiguration happens automatically when affected hardware is probed, and all subsequent disk transfers use the corrupted address.

03

BranchIntroducedFixed inPatch commit
5.102.6.225.10.2710191c9ff23ef
5.152.6.225.15.2228f510f68208a
6.12.6.226.1.1894719424bb7cb
6.122.6.226.12.112b28a17d4a9bb
6.182.6.226.18.54b691a3e24427
6.62.6.226.6.158a5a8b4737f68
7.22.6.227.2.87912ad8fb523
mainline2.6.227.382e47533221d
cip/4.192.6.224.19.325-cip137551f46858fdb
cip/5.102.6.225.10.271-cip780191c9ff23ef
cip/5.10-rt2.6.225.10.272-cip79-rt350191c9ff23ef
cip/6.12.6.226.1.189-cip614719424bb7cb
cip/6.1-rt2.6.226.1.189-cip61-rt324719424bb7cb
cip/6.122.6.226.12.112-cip33b28a17d4a9bb

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)