HIGH Introduced in 2.6.22
ata PortAddr Corruption
CVE-2026-98262
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 2.6.22 | 5.10.271 | 0191c9ff23ef |
| 5.15 | 2.6.22 | 5.15.222 | 8f510f68208a |
| 6.1 | 2.6.22 | 6.1.189 | 4719424bb7cb |
| 6.12 | 2.6.22 | 6.12.112 | b28a17d4a9bb |
| 6.18 | 2.6.22 | 6.18.54 | b691a3e24427 |
| 6.6 | 2.6.22 | 6.6.158 | a5a8b4737f68 |
| 7.2 | 2.6.22 | 7.2.8 | 7912ad8fb523 |
| mainline | 2.6.22 | 7.3 | 82e47533221d |
| cip/4.19 | 2.6.22 | 4.19.325-cip137 | 551f46858fdb |
| cip/5.10 | 2.6.22 | 5.10.271-cip78 | 0191c9ff23ef |
| cip/5.10-rt | 2.6.22 | 5.10.272-cip79-rt35 | 0191c9ff23ef |
| cip/6.1 | 2.6.22 | 6.1.189-cip61 | 4719424bb7cb |
| cip/6.1-rt | 2.6.22 | 6.1.189-cip61-rt32 | 4719424bb7cb |
| cip/6.12 | 2.6.22 | 6.12.112-cip33 | b28a17d4a9bb |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Fixed in 4.19.325-cip137 |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |