CVE-2023-53594 Details
Description
In the Linux kernel, the following vulnerability has been resolved: driver core: fix resource leak in device_add() When calling kobject_add() failed in device_add(), it will call cleanup_glue_dir() to free resource. But in kobject_add(), dev->kobj.parent has been set to NULL. This will cause resource leak. The process is as follows: device_add() get_device_parent() class_dir_create_and_add() kobject_add() //kobject_get() ... dev->kobj.parent = kobj; ... kobject_add() //failed, but set dev->kobj.parent = NULL ... glue_dir = get_glue_dir(dev) //glue_dir = NULL, and goto //"Error" label ... cleanup_glue_dir() //becaues glue_dir is NULL, not call //kobject_put() The preceding problem may cause insmod mac80211_hwsim.ko to failed. sysfs: cannot create duplicate filename '/devices/virtual/mac80211_hwsim' Call Trace: <TASK> dump_stack_lvl+0x8e/0xd1 sysfs_warn_dup.cold+0x1c/0x29 sysfs_create_dir_ns+0x224/0x280 kobject_add_internal+0x2aa/0x880 kobject_add+0x135/0x1a0 get_device_parent+0x3d7/0x590 device_add+0x2aa/0x1cb0 device_create_groups_vargs+0x1eb/0x260 device_create+0xdc/0x110 mac80211_hwsim_new_radio+0x31e/0x4790 [mac80211_hwsim] init_mac80211_hwsim+0x48d/0x1000 [mac80211_hwsim] do_one_initcall+0x10f/0x630 do_init_module+0x19f/0x5e0 load_module+0x64b7/0x6eb0 __do_sys_finit_module+0x140/0x200 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 </TASK> kobject_add_internal failed for mac80211_hwsim with -EEXIST, don't try to register things with the same name in the same directory.
A resource leak vulnerability has been identified in the Linux kernel's driver core, specifically within the device_add() function. When the kobject_add() call fails, device_add() attempts to free resources by calling cleanup_glue_dir(). However, because kobject_add() has already set dev->kobj.parent to NULL, this cleanup process is incomplete, leading to a resource leak. This issue can cause the mac80211_hwsim.ko module to fail to load, as the system will attempt to create a duplicate entry in the sysfs, which is not allowed. The vulnerability arises from a race condition between creating or querying the glue directory and its cleanup, which can be exploited by improperly managing device registrations.
The vulnerability has been addressed in the Linux kernel. Users should upgrade to a version that includes the fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/6977b1a5d67097eaa4d02b0c126c04cc6e8917c0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8d389e363075c2e1deb84a560686ea92123e4b8b | kernel.org | Patch |
| https://git.kernel.org/stable/c/d1dbff10c6cd3b43457f3efd3c9c4950009635bf | kernel.org | Patch |
| https://git.kernel.org/stable/c/f39d21154db87545d8f0b25d13c326f37cc32239 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.10.105, < 3.11 >= 3.12.70, < 3.13 >= 4.4.40, < 4.5 >= 4.8.16, < 5.15.99 >= 5.16, < 6.1.16 >= 6.2, < 6.2.3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Mar 21, 2026 | Modified Analysis | [email protected] |
| Feb 9, 2026 | Initial Analysis | [email protected] |
| Oct 4, 2025 | New CVE Received | kernel.org |