CVE-2021-47063·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm: bridge/panel: Cleanup connector on bridge detach If we don't call drm_connector_cleanup() manually in panel_bridge_detach(), the connector will be cleaned up with the other DRM objects in the call to drm_mode_config_cleanup(). However, since our drm_connector is devm-allocated, by the time drm_mode_config_cleanup() will be called, our connector will be long gone. Therefore, the connector must be cleaned up when the bridge is detached to avoid use-after-free conditions. v2: Cleanup connector only if it was created v3: Add FIXME v4: (Use connector->dev) directly in if() block
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.4
- Published
- 2024-02-29
Affected versions
From: 5.12
Until: 5.12.4
Fixed in: 5.12.4
How to fix this CVE
Update your Linux kernel to version 5.12.4 or later to resolve a use-after-free vulnerability in the DRM bridge/panel connector cleanup logic. This vulnerability can occur when a display bridge is detached, leaving dangling connector pointers that may be accessed during system shutdown or module unloading. Ensure your system is running a patched kernel version and reboot to activate the fix.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and verify if it falls within 5.12 to 5.12.3 range
- Step 2: Verify DRM/graphics subsystem is in use by checking `lsmod | grep drm` for loaded DRM modules
- Step 3: Search kernel logs for memory errors related to connectors: `sudo dmesg | grep -i 'use-after-free\|connector\|drm.*error'`
- Step 4: After patching, confirm kernel version is 5.12.4 or higher with `uname -r` and reboot if needed
FAQ
What is CVE-2021-47063?
CVE-2021-47063 is a use-after-free vulnerability in the Linux kernel's DRM (Direct Rendering Manager) bridge/panel subsystem. When a display bridge is detached, the connector object may be cleaned up prematurely, but references to it persist in the device model, leading to potential memory corruption or denial of service.
Is CVE-2021-47063 being actively exploited?
No, CVE-2021-47063 is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the vulnerability can still be triggered through normal system operations involving graphics driver detachment.
What versions of Kernel are affected by CVE-2021-47063?
Linux kernel versions 5.12 through 5.12.3 are vulnerable. Kernel 5.12.4 and later versions include the fix.
How do I check if my server is vulnerable to CVE-2021-47063?
Run `uname -r` to check your kernel version. If the output shows 5.12.0, 5.12.1, 5.12.2, or 5.12.3, your system is vulnerable and requires immediate patching.
Does Defensia detect CVE-2021-47063?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server within the vulnerable version range, CVE-2021-47063 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/18149b420c9bd93c443e8d1f48a063d71d9f6aa1
- https://git.kernel.org/stable/c/4d906839d321c2efbf3fed4bc31ffd9ff55b75c0
- https://git.kernel.org/stable/c/98d7d76a74e48ec3ddf2e23950adff7edcab9327
- https://git.kernel.org/stable/c/ce450934a00cf896e648fde08d0bd1426653d7a2
- https://git.kernel.org/stable/c/18149b420c9bd93c443e8d1f48a063d71d9f6aa1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47063. Free for 1 server.
Get started free