CVE-2024-40987
drm/amdgpu: fix UBSAN warning in kv_dpm.c
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4ad7d49059358ceadd352b4e2511425bdb68f400; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 1c44f7759a5650acf8f13d3e0a184d09e03be9e4; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < d8a04a6bfa75251ba7bcc3651ed211e82f13f388; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4d020c1dbd2b2304f44d003e6de956ae570049dc; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < fc5cb952e6723c5c55e47b8cf94a891bd4af1a86; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b065d79ed06a0bb4377bc6dcc2ff0cb1f55a798f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b0d612619ed70cab476c77b19e00d13aa414e14f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < f0d576f840153392d04b2d52cf3adab8f62e8cb6
- Anyone running Linux 4.2
Vulnerability facts
- Affected
- Linux >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4ad7d49059358ceadd352b4e2511425bdb68f400; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 1c44f7759a5650acf8f13d3e0a184d09e03be9e4; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < d8a04a6bfa75251ba7bcc3651ed211e82f13f388; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4d020c1dbd2b2304f44d003e6de956ae570049dc; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < fc5cb952e6723c5c55e47b8cf94a891bd4af1a86; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b065d79ed06a0bb4377bc6dcc2ff0cb1f55a798f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b0d612619ed70cab476c77b19e00d13aa414e14f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < f0d576f840153392d04b2d52cf3adab8f62e8cb6; Linux 4.2
- Fixed in
- Linux 4ad7d49059358ceadd352b4e2511425bdb68f400, Linux 1c44f7759a5650acf8f13d3e0a184d09e03be9e4, Linux 4d020c1dbd2b2304f44d003e6de956ae570049dc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-787
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix UBSAN warning in kv_dpm.c Adds bounds check for sumo_vid_mapping_entry.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4ad7d49059358ceadd352b4e2511425bdb68f400; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 1c44f7759a5650acf8f13d3e0a184d09e03be9e4; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < d8a04a6bfa75251ba7bcc3651ed211e82f13f388; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4d020c1dbd2b2304f44d003e6de956ae570049dc; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < fc5cb952e6723c5c55e47b8cf94a891bd4af1a86; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b065d79ed06a0bb4377bc6dcc2ff0cb1f55a798f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b0d612619ed70cab476c77b19e00d13aa414e14f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < f0d576f840153392d04b2d52cf3adab8f62e8cb6 | — | cvelist |
| Linux | 4.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-40987. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-40987.md Affected: Linux >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4ad7d49059358ceadd352b4e2511425bdb68f400; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 1c44f7759a5650acf8f13d3e0a184d09e03be9e4; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < d8a04a6bfa75251ba7bcc3651ed211e82f13f388; >= a2e73f56fa6282481927ec4… Fixed in: Linux 4ad7d49059358ceadd352b4e2511425bdb68f400, Linux 1c44f7759a5650acf8f13d3e0a184d09e03be9e4, Linux 4d020c1dbd2b2304f44d003e6de956ae570049dc 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.
References
Patches
- https://git.kernel.org/stable/c/4ad7d49059358ceadd352b4e2511425bdb68f400
- https://git.kernel.org/stable/c/1c44f7759a5650acf8f13d3e0a184d09e03be9e4
- https://git.kernel.org/stable/c/d8a04a6bfa75251ba7bcc3651ed211e82f13f388
- https://git.kernel.org/stable/c/4d020c1dbd2b2304f44d003e6de956ae570049dc
- https://git.kernel.org/stable/c/fc5cb952e6723c5c55e47b8cf94a891bd4af1a86
- https://git.kernel.org/stable/c/b065d79ed06a0bb4377bc6dcc2ff0cb1f55a798f
- https://git.kernel.org/stable/c/b0d612619ed70cab476c77b19e00d13aa414e14f
- https://git.kernel.org/stable/c/f0d576f840153392d04b2d52cf3adab8f62e8cb6
FAQ
Is CVE-2024-40987 being exploited?
There is no confirmed exploitation: CVE-2024-40987 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-40987?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-40987?
Linux >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4ad7d49059358ceadd352b4e2511425bdb68f400; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 1c44f7759a5650acf8f13d3e0a184d09e03be9e4; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < d8a04a6bfa75251ba7bcc3651ed211e82f13f388; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < 4d020c1dbd2b2304f44d003e6de956ae570049dc; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < fc5cb952e6723c5c55e47b8cf94a891bd4af1a86; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b065d79ed06a0bb4377bc6dcc2ff0cb1f55a798f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < b0d612619ed70cab476c77b19e00d13aa414e14f; >= a2e73f56fa6282481927ec43aa9362c03c2e2104, < f0d576f840153392d04b2d52cf3adab8f62e8cb6; Linux 4.2.
Is there a fix for CVE-2024-40987?
Yes. Fixed in Linux 4ad7d49059358ceadd352b4e2511425bdb68f400, Linux 1c44f7759a5650acf8f13d3e0a184d09e03be9e4, Linux 4d020c1dbd2b2304f44d003e6de956ae570049dc. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-40987?
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.