Bug 2347703 (CVE-2022-49127)

Summary: CVE-2022-49127 kernel: ref_tracker: implement use-after-free detection
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel's ref_tracker subsystem, which can lead to a use-after-free condition due to improper handling of reference tracking during network device teardown. Specifically, when ref_tracker_dir_init() is invoked, it marks the associated ref_tracker_dir structure as dead. However, if functions such as dev_put() or dev_hold() are called after this point, particularly during the dismantling of network devices, they may operate on already freed memory, which can lead to memory corruption and system instability.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:03:47 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 14:27:28 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022605-CVE-2022-49127-15e6@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 18:24:54 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022605-CVE-2022-49127-15e6@gregkh/T