CVE-2021-47165 drm/meson: fix shutdown crash when component not probed
A null pointer dereference in the Linux kernel's DRM Meson driver causes a crash during system shutdown if the component is not probed.
- 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-2021-47165?
CVE-2021-47165 is a medium-severity vulnerability in Linux kernel, published on 25 Mar 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/meson: fix shutdown crash when component not probed
When main component is not probed, by example when the dw-hdmi module is not loaded yet or in probe defer, the following crash appears on shutdown:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000038 ... pc : meson_drv_shutdown+0x24/0x50 lr : platform_drv_shutdown+0x20/0x30 ... Call trace: meson_drv_shutdown+0x24/0x50 platform_drv_shutdown+0x20/0x30 device_shutdown+0x158/0x360 kernel_restart_prepare+0x38/0x48 kernel_restart+0x18/0x68 __do_sys_reboot+0x224/0x250 __arm64_sys_reboot+0x24/0x30 ...
Simply check if the priv struct has been allocated before using it.
Weakness: CWE-476
Which versions are affected by CVE-2021-47165?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47165?
Apply the vendor's patch.
Is CVE-2021-47165 being exploited?
There is no known exploitation of CVE-2021-47165 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47165, GHSA-rfpv-q7vr-v94r, UBUNTU-CVE-2021-47165.