# CVE-2024-56594: drm/amdgpu: set the right AMDGPU sg segment limitation

> 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.31% (percentile 16, 2026-11-26)
- **Published:** 2024-12-27T14:51:01.431Z
- **Modified:** 2026-11-05T21:17:36.260Z

## Who should check

- Anyone running Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< b5807a08954fdf914ef80b49aaa6cda965ecc95c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 13c3a54f48a612a117dfd82a9dd91732261e869d; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 76581147b05c2adb6b47bbc697521725f10224e4; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ff0346a74627a5f607a33a3852586f8c7f678329; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< b9e52a96ec92245bf15dabba1d3d862d7a03efb8; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 76649ccf97e2cd72b62e34ed2fba6e0f89497eab; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< e2e97435783979124ba92d6870415c57ecfef6a5
- Anyone running Linux 4.2

## Description

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

drm/amdgpu: set the right AMDGPU sg segment limitation

The driver needs to set the correct max\_segment\_size;
otherwise debug\_dma\_map\_sg() will complain about the
over-mapping of the AMDGPU sg length as following:

WARNING: CPU: 6 PID: 1964 at kernel/dma/debug.c:1178 debug\_dma\_map\_sg+0x2dc/0x370
\[  364.049444\] Modules linked in: veth amdgpu(OE) amdxcp drm\_exec gpu\_sched drm\_buddy drm\_ttm\_helper ttm(OE) drm\_suballoc\_helper drm\_display\_helper drm\_kms\_helper i2c\_algo\_bit rpcsec\_gss\_krb5 auth\_rpcgss nfsv4 nfs lockd grace netfs xt\_conntrack xt\_MASQUERADE nf\_conntrack\_netlink xfrm\_user xfrm\_algo iptable\_nat xt\_addrtype iptable\_filter br\_netfilter nvme\_fabrics overlay nfnetlink\_cttimeout nfnetlink openvswitch nsh nf\_conncount nf\_nat nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 libcrc32c bridge stp llc amd\_atl intel\_rapl\_msr intel\_rapl\_common sunrpc sch\_fq\_codel snd\_hda\_codec\_realtek snd\_hda\_codec\_generic snd\_hda\_scodec\_component snd\_hda\_codec\_hdmi snd\_hda\_intel snd\_intel\_dspcfg edac\_mce\_amd binfmt\_misc snd\_hda\_codec snd\_pci\_acp6x snd\_hda\_core snd\_acp\_config snd\_hwdep snd\_soc\_acpi kvm\_amd snd\_pcm kvm snd\_seq\_midi snd\_seq\_midi\_event crct10dif\_pclmul ghash\_clmulni\_intel sha512\_ssse3 snd\_rawmidi sha256\_ssse3 sha1\_ssse3 aesni\_intel snd\_seq nls\_iso8859\_1 crypto\_simd snd\_seq\_device cryptd snd\_timer rapl input\_leds snd
\[  364.049532\]  ipmi\_devintf wmi\_bmof ccp serio\_raw k10temp sp5100\_tco soundcore ipmi\_msghandler cm32181 industrialio mac\_hid msr parport\_pc ppdev lp parport drm efi\_pstore ip\_tables x\_tables pci\_stub crc32\_pclmul nvme ahci libahci i2c\_piix4 r8169 nvme\_core i2c\_designware\_pci realtek i2c\_ccgx\_ucsi video wmi hid\_generic cdc\_ether usbnet usbhid hid r8152 mii
\[  364.049576\] CPU: 6 PID: 1964 Comm: rocminfo Tainted: G           OE      6.10.0-custom \#492
\[  364.049579\] Hardware name: AMD Majolica-RN/Majolica-RN, BIOS RMJ1009A 06/13/2021
\[  364.049582\] RIP: 0010:debug\_dma\_map\_sg+0x2dc/0x370
\[  364.049585\] Code: 89 4d b8 e8 36 b1 86 00 8b 4d b8 48 8b 55 b0 44 8b 45 a8 4c 8b 4d a0 48 89 c6 48 c7 c7 00 4b 74 bc 4c 89 4d b8 e8 b4 73 f3 ff \<0f\> 0b 4c 8b 4d b8 8b 15 c8 2c b8 01 85 d2 0f 85 ee fd ff ff 8b 05
\[  364.049588\] RSP: 0018:ffff9ca600b57ac0 EFLAGS: 00010286
\[  364.049590\] RAX: 0000000000000000 RBX: ffff88b7c132b0c8 RCX: 0000000000000027
\[  364.049592\] RDX: ffff88bb0f521688 RSI: 0000000000000001 RDI: ffff88bb0f521680
\[  364.049594\] RBP: ffff9ca600b57b20 R08: 000000000000006f R09: ffff9ca600b57930
\[  364.049596\] R10: ffff9ca600b57928 R11: ffffffffbcb46328 R12: 0000000000000000
\[  364.049597\] R13: 0000000000000001 R14: ffff88b7c19c0700 R15: ffff88b7c9059800
\[  364.049599\] FS:  00007fb2d3516e80(0000) GS:ffff88bb0f500000(0000) knlGS:0000000000000000
\[  364.049601\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  364.049603\] CR2: 000055610bd03598 CR3: 00000001049f6000 CR4: 0000000000350ef0
\[  364.049605\] Call Trace:
\[  364.049607\]  \<TASK\>
\[  364.049609\]  ? show\_regs+0x6d/0x80
\[  364.049614\]  ? \_\_warn+0x8c/0x140
\[  364.049618\]  ? debug\_dma\_map\_sg+0x2dc/0x370
\[  364.049621\]  ? report\_bug+0x193/0x1a0
\[  364.049627\]  ? handle\_bug+0x46/0x80
\[  364.049631\]  ? exc\_invalid\_op+0x1d/0x80
\[  364.049635\]  ? asm\_exc\_invalid\_op+0x1f/0x30
\[  364.049642\]  ? debug\_dma\_map\_sg+0x2dc/0x370
\[  364.049647\]  \_\_dma\_map\_sg\_attrs+0x90/0xe0
\[  364.049651\]  dma\_map\_sgtable+0x25/0x40
\[  364.049654\]  amdgpu\_bo\_move+0x59a/0x850 \[amdgpu\]
\[  364.049935\]  ? srso\_return\_thunk+0x5/0x5f
\[  364.049939\]  ? amdgpu\_ttm\_tt\_populate+0x5d/0xc0 \[amdgpu\]
\[  364.050095\]  ttm\_bo\_handle\_move\_mem+0xc3/0x180 \[ttm\]
\[  364.050103\]  ttm\_bo\_validate+0xc1/0x160 \[ttm\]
\[  364.050108\]  ? amdgpu\_ttm\_tt\_get\_user\_pages+0xe5/0x1b0 \[amdgpu\]
\[  364.050263\]  amdgpu\_amdkfd\_gpuvm\_alloc\_memory\_of\_gpu+0xa12/0xc90 \[amdgpu\]
\[  364.050473\]  kfd\_ioctl\_alloc\_memory\_of\_gpu+0x16b/0x3b0 \[amdgpu\]
\[  364.050680\]  kfd\_ioctl+0x3c2/0x530 \[amdgpu\]
\[  364.050866\]  ? \_\_pfx\_kfd\_ioctl\_alloc\_memory\_of\_gpu+0x10/0x10 \[amdgpu\]
\[  364.05105
---truncated---

## Affected and fixed versions

- Linux: \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< b5807a08954fdf914ef80b49aaa6cda965ecc95c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 13c3a54f48a612a117dfd82a9dd91732261e869d; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 76581147b05c2adb6b47bbc697521725f10224e4; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ff0346a74627a5f607a33a3852586f8c7f678329; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< b9e52a96ec92245bf15dabba1d3d862d7a03efb8; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 76649ccf97e2cd72b62e34ed2fba6e0f89497eab; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< e2e97435783979124ba92d6870415c57ecfef6a5 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56594.md
Affected: Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < b5807a08954fdf914ef80b49aaa6cda965ecc95c; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 13c3a54f48a612a117dfd82a9dd91732261e869d; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 76581147b05c2adb6b47bbc697521725f10224e4; >= d38ceaf99ed015f2a0b9af3…
Fixed in: Linux 13c3a54f48a612a117dfd82a9dd91732261e869d, Linux 76581147b05c2adb6b47bbc697521725f10224e4, Linux 76649ccf97e2cd72b62e34ed2fba6e0f89497eab

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-56594 being exploited?

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

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

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

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

Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< b5807a08954fdf914ef80b49aaa6cda965ecc95c; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 13c3a54f48a612a117dfd82a9dd91732261e869d; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 76581147b05c2adb6b47bbc697521725f10224e4; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ff0346a74627a5f607a33a3852586f8c7f678329; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< b9e52a96ec92245bf15dabba1d3d862d7a03efb8; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 76649ccf97e2cd72b62e34ed2fba6e0f89497eab; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< e2e97435783979124ba92d6870415c57ecfef6a5; Linux 4.2.

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

Yes. Fixed in Linux 13c3a54f48a612a117dfd82a9dd91732261e869d, Linux 76581147b05c2adb6b47bbc697521725f10224e4, Linux 76649ccf97e2cd72b62e34ed2fba6e0f89497eab. No fix listed yet: follow the vendor advisory.

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

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/b5807a08954fdf914ef80b49aaa6cda965ecc95c>
- patch: <https://git.kernel.org/stable/c/13c3a54f48a612a117dfd82a9dd91732261e869d>
- patch: <https://git.kernel.org/stable/c/76581147b05c2adb6b47bbc697521725f10224e4>
- patch: <https://git.kernel.org/stable/c/ff0346a74627a5f607a33a3852586f8c7f678329>
- patch: <https://git.kernel.org/stable/c/b9e52a96ec92245bf15dabba1d3d862d7a03efb8>
- patch: <https://git.kernel.org/stable/c/76649ccf97e2cd72b62e34ed2fba6e0f89497eab>
- patch: <https://git.kernel.org/stable/c/e2e97435783979124ba92d6870415c57ecfef6a5>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## 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-56594>

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