Skip to content
Not rated

CVE-2024-26993 In the Linux kernel, the following vulnerability has been resolved: fs: sysfs: Fix reference leak in…

Description

In the Linux kernel, the following vulnerability has been resolved: fs: sysfs: Fix reference leak in sysfs_break_active_protection() The sysfs_break_active_protection() routine has an obvious reference leak in its error path. If the call to kernfs_find_and_get() fails then kn will be NULL, so the companion sysfs_unbreak_active_protection() routine won't get called (and would only cause an access violation by trying to dereference kn->parent if it was called). As a result, the reference to kobj acquired at the start of the function will never be released. Fix the leak by adding an explicit kobject_put() call when kn is NULL.

Affected products and versions

Product Affected versions Fixed in
Linux 6.9 earliest → < 6.9 6.9
Linux 6.8 earliest → < 6.8.8 6.8.8
Linux 6.6 earliest → < 6.6.29 6.6.29
Linux 6.1 earliest → < 6.1.88 6.1.88
Linux 5.15 earliest → < 5.15.157 5.15.157
Linux 5.10 earliest → < 5.10.216 5.10.216
Linux 5.4 earliest → < 5.4.275 5.4.275
Linux 4.19 4.19.313
RUGGEDCOM RST2428P 3.1 earliest → < 3.1 3.1
Show the 3 other branches
Product Affected versions Fixed in
SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family Versions not published
SCALANCE XCM-/XRM-/XCH-/XRH-300 family 3.1 earliest → < 3.1 3.1
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 1.1 earliest → < 1.1.1 1.1.1

References

Timeline

  1. Published
  2. Last modified
The 18283 CVEs of Linux →
Track this CVE