CVE-2024-49916 drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn401_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-49916?
CVE-2024-49916 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 dcn401_init_hw
This commit addresses a potential null pointer dereference issue in the `dcn401_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/dcn401/dcn401_hwseq.c:416 dcn401_init_hw() error: we previously assumed 'dc->clk_mgr' could be null (see line 225)
Weakness: CWE-476
Which versions are affected by CVE-2024-49916?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-49916?
Apply the vendor's patch.
Is CVE-2024-49916 being exploited?
There is no known exploitation of CVE-2024-49916 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-51102, AZL-51186, BELL-CVE-2024-49916, DEBIAN-CVE-2024-49916, GHSA-rqg9-48mq-4pm8, ROOT-OS-DEBIAN-11-CVE-2024-49916 and 4 more.