# CVE-2024-44976: ata: pata\_macio: Fix DMA table overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **Published:** 2024-09-04T19:54:28.282Z
- **Modified:** 2026-06-17T07:53:20.547Z

## Who should check

- Anyone running Linux \>= 09fe2bfa6b83f865126ce3964744863f69a4a030, \< 709e4c8f78e156ab332297bdd87527ec3da4e2d4; \>= 09fe2bfa6b83f865126ce3964744863f69a4a030, \< 822c8020aebcf5804a143b891e34f29873fee5e2
- Anyone running Linux 6.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

ata: pata\_macio: Fix DMA table overflow

Kolbjørn and Jonáš reported that their 32-bit PowerMacs were crashing
in pata-macio since commit 09fe2bfa6b83 ("ata: pata\_macio: Fix
max\_segment\_size with PAGE\_SIZE == 64K").

For example:

  kernel BUG at drivers/ata/pata\_macio.c:544!
  Oops: Exception in kernel mode, sig: 5 \[\#1\]
  BE PAGE\_SIZE=4K MMU=Hash SMP NR\_CPUS=2 DEBUG\_PAGEALLOC PowerMac
  ...
  NIP pata\_macio\_qc\_prep+0xf4/0x190
  LR  pata\_macio\_qc\_prep+0xfc/0x190
  Call Trace:
    0xc1421660 (unreliable)
    ata\_qc\_issue+0x14c/0x2d4
    \_\_ata\_scsi\_queuecmd+0x200/0x53c
    ata\_scsi\_queuecmd+0x50/0xe0
    scsi\_queue\_rq+0x788/0xb1c
    \_\_blk\_mq\_issue\_directly+0x58/0xf4
    blk\_mq\_plug\_issue\_direct+0x8c/0x1b4
    blk\_mq\_flush\_plug\_list.part.0+0x584/0x5e0
    \_\_blk\_flush\_plug+0xf8/0x194
    \_\_submit\_bio+0x1b8/0x2e0
    submit\_bio\_noacct\_nocheck+0x230/0x304
    btrfs\_work\_helper+0x200/0x338
    process\_one\_work+0x1a8/0x338
    worker\_thread+0x364/0x4c0
    kthread+0x100/0x104
    start\_kernel\_thread+0x10/0x14

That commit increased max\_segment\_size to 64KB, with the justification
that the SCSI core was already using that size when PAGE\_SIZE == 64KB,
and that there was existing logic to split over-sized requests.

However with a sufficiently large request, the splitting logic causes
each sg to be split into two commands in the DMA table, leading to
overflow of the DMA table, triggering the BUG\_ON().

With default settings the bug doesn't trigger, because the request size
is limited by max\_sectors\_kb == 1280, however max\_sectors\_kb can be
increased, and apparently some distros do that by default using udev
rules.

Fix the bug for 4KB kernels by reverting to the old max\_segment\_size.

For 64KB kernels the sg\_tablesize needs to be halved, to allow for the
possibility that each sg will be split into two.

## Affected and fixed versions

- Linux: \>= 09fe2bfa6b83f865126ce3964744863f69a4a030, \< 709e4c8f78e156ab332297bdd87527ec3da4e2d4; \>= 09fe2bfa6b83f865126ce3964744863f69a4a030, \< 822c8020aebcf5804a143b891e34f29873fee5e2 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 822c8020aebcf5804a143b891e34f29873fee5e2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-44976. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-44976.md
Affected: Linux >= 09fe2bfa6b83f865126ce3964744863f69a4a030, < 709e4c8f78e156ab332297bdd87527ec3da4e2d4; >= 09fe2bfa6b83f865126ce3964744863f69a4a030, < 822c8020aebcf5804a143b891e34f29873fee5e2; Linux 6.10
Fixed in: Linux 709e4c8f78e156ab332297bdd87527ec3da4e2d4, Linux 822c8020aebcf5804a143b891e34f29873fee5e2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-44976 being exploited?

There is no confirmed exploitation: CVE-2024-44976 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-44976?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-44976?

Linux \>= 09fe2bfa6b83f865126ce3964744863f69a4a030, \< 709e4c8f78e156ab332297bdd87527ec3da4e2d4; \>= 09fe2bfa6b83f865126ce3964744863f69a4a030, \< 822c8020aebcf5804a143b891e34f29873fee5e2; Linux 6.10.

### Is there a fix for CVE-2024-44976?

Yes. Fixed in Linux 709e4c8f78e156ab332297bdd87527ec3da4e2d4, Linux 822c8020aebcf5804a143b891e34f29873fee5e2. Upgrade Linux to 822c8020aebcf5804a143b891e34f29873fee5e2 or later.

### How do I check if I'm affected by CVE-2024-44976?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/709e4c8f78e156ab332297bdd87527ec3da4e2d4>
- patch: <https://git.kernel.org/stable/c/822c8020aebcf5804a143b891e34f29873fee5e2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-44976>

HTML: <https://flawdb.com/CVE-2024-44976> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-44976>
