CVE-2022-49724·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: tty: goldfish: Fix free_irq() on remove Pass the correct dev_id to free_irq() to fix this splat when the driver is unbound: WARNING: CPU: 0 PID: 30 at kernel/irq/manage.c:1895 free_irq Trying to free already-free IRQ 65 Call Trace: warn_slowpath_fmt free_irq goldfish_tty_remove platform_remove device_remove device_release_driver_internal device_driver_detach unbind_store drv_attr_store ...
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.6
- Published
- 2025-02-26
Affected versions
From: 5.16
Until: 5.18.6
Fixed in: 5.18.6
How to fix this CVE
Update your Linux kernel to version 5.18.6 or later to resolve an IRQ management bug in the Goldfish TTY driver that causes kernel warnings during driver unbind operations. This fix ensures proper cleanup of interrupt handlers when the Goldfish TTY device is removed from the system, preventing resource leaks and stability issues.
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 compare against the affected range (5.16 to 5.18.5). Versions 5.18.6+ are patched.
- Step 2: Verify if Goldfish TTY driver is loaded on your system by running `grep -i goldfish /proc/modules` or `lsmod | grep goldfish`.
- Step 3: Search system logs for IRQ-related warnings using `grep -i 'free_irq\|Trying to free already-free IRQ' /var/log/kern.log /var/log/syslog`.
- Step 4: After patching, reboot the system and verify the new kernel version with `uname -r`, then repeat Step 3 to confirm warnings no longer appear.
FAQ
What is CVE-2022-49724?
CVE-2022-49724 is a kernel resource management flaw in the Goldfish TTY driver where the interrupt handler cleanup routine uses an incorrect device ID parameter, causing the kernel to attempt freeing an already-freed IRQ and generating kernel warnings on driver removal.
Is CVE-2022-49724 being actively exploited?
No, CVE-2022-49724 is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. This is a local resource management issue that triggers warnings rather than enabling direct attacks.
What versions of Kernel are affected by CVE-2022-49724?
Linux kernel versions 5.16 through 5.18.5 are vulnerable. Kernel 5.18.6 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2022-49724?
Run `uname -r` to display your kernel version. If the output shows a version between 5.16 and 5.18.5 (inclusive) and the Goldfish TTY driver is present (check via `lsmod | grep goldfish`), your system is vulnerable.
Does Defensia detect CVE-2022-49724?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-49724 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/499e13aac6c762e1e828172b0f0f5275651d6512
- https://git.kernel.org/stable/c/65ca4db68b6819244df9024aea4be55edf8af1ef
- https://git.kernel.org/stable/c/a6fcd7ffd76a9c1d998a2d02d518c78a55c5bed8
- https://git.kernel.org/stable/c/c4b0b8edccb0cfb15a8cecf4161e0571d3daac64
- https://git.kernel.org/stable/c/c83a1d40dc624070a203eb383ef9fb60eb634136
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49724. Free for 1 server.
Get started free