CVE-2022-49127·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ref_tracker: implement use-after-free detection Whenever ref_tracker_dir_init() is called, mark the struct ref_tracker_dir as dead. Test the dead status from ref_tracker_alloc() and ref_tracker_free() This should detect buggy dev_put()/dev_hold() happening too late in netdevice dismantle process.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.17.3
- Published
- 2025-02-26
Affected versions
From: 5.17
Until: 5.17.3
Fixed in: 5.17.3
How to fix this CVE
Update your Linux kernel to version 5.17.3 or later to address a use-after-free detection flaw in the ref_tracker subsystem. This vulnerability can allow local authenticated users to trigger kernel memory safety issues during network device cleanup operations. Apply the patch immediately, particularly if your systems run containerized workloads or handle frequent network interface creation/destruction cycles.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running: uname -r | grep -oP '\d+\.\d+\.\d+'
- Step 2: Compare your kernel version against 5.17.3 — versions 5.17.0 through 5.17.2 are vulnerable; verify if your system uses the affected range with: cat /proc/version
- Step 3: Search kernel logs for ref_tracker related warnings or use-after-free detections: sudo dmesg | grep -i 'ref_tracker\|use-after-free'
- Step 4: After patching, verify the update applied successfully by rebooting and re-running: uname -r to confirm kernel version is 5.17.3 or higher
FAQ
What is CVE-2022-49127?
CVE-2022-49127 is a use-after-free detection vulnerability in the Linux kernel's ref_tracker subsystem that fails to properly mark reference tracking structures as dead during device dismantling, potentially allowing local authenticated attackers to trigger memory safety violations.
Is CVE-2022-49127 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities catalog, CVE-2022-49127 is not being actively exploited in the wild, and no public exploits are currently available.
What versions of Kernel are affected by CVE-2022-49127?
Linux kernel versions 5.17.0 through 5.17.2 are affected; version 5.17.3 and later include the fix.
How do I check if my server is vulnerable to CVE-2022-49127?
Run: uname -r and verify the output; if it shows 5.17.0, 5.17.1, or 5.17.2, your system is vulnerable and requires immediate kernel update.
Does Defensia detect CVE-2022-49127?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2022-49127 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49127. Free for 1 server.
Get started free