CVE-2024-49917 drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw
A null pointer dereference in the Linux kernel's AMD display driver can cause a system crash, requiring a kernel patch to fix.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-49917?
CVE-2024-49917 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw
This commit addresses a potential null pointer dereference issue in the `dcn30_init_hw` function. The issue could occur when `dc->clk_mgr` or `dc->clk_mgr->funcs` is null.
The fix adds a check to ensure `dc->clk_mgr` and `dc->clk_mgr->funcs` is not null before accessing its functions. This prevents a potential null pointer dereference.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn30/dcn30_hwseq.c:789 dcn30_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 628)
Weakness: CWE-476
Which versions are affected by CVE-2024-49917?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-49917?
Apply the vendor's patch.
Is CVE-2024-49917 being exploited?
There is no known exploitation of CVE-2024-49917 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-51141, AZL-51287, BELL-CVE-2024-49917, DEBIAN-CVE-2024-49917, GHSA-7797-cc95-p257, ROOT-OS-DEBIAN-11-CVE-2024-49917 and 2 more.