Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-56697

MEDIUM 5.5EPSS 15%

drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info()

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < d14bea4e094871226ea69772d69dab8b7b5f4915; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < a1144da794adedb9447437c57d69add56494309d
  • Anyone running Linux 6.11

Vulnerability facts

Affected
Linux >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < d14bea4e094871226ea69772d69dab8b7b5f4915; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < a1144da794adedb9447437c57d69add56494309d; Linux 6.11
Fixed in
No fix listed yet
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, CNA)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.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info() Fix two issues with memory allocation in amdgpu_discovery_get_nps_info() for mem_ranges: - Add a check for allocation failure to avoid dereferencing a null pointer. - As suggested by Christophe, use kvcalloc() for memory allocation, which checks for multiplication overflow. Additionally, assign the output parameters nps_type and range_cnt after the kvcalloc() call to prevent modifying the output parameters in case of an error return.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < d14bea4e094871226ea69772d69dab8b7b5f4915; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < a1144da794adedb9447437c57d69add56494309d—cvelist
Linux6.11—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-56697. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56697.md
Affected: Linux >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < d14bea4e094871226ea69772d69dab8b7b5f4915; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < a1144da794adedb9447437c57d69add56494309d; Linux 6.11
Fixed in: no fixed version listed yet

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

FAQ

Is CVE-2024-56697 being exploited?

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

How serious is CVE-2024-56697?

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

Which versions are affected by CVE-2024-56697?

Linux >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < d14bea4e094871226ea69772d69dab8b7b5f4915; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197; >= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < a1144da794adedb9447437c57d69add56494309d; Linux 6.11.

Is there a fix for CVE-2024-56697?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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.

Sponsors