CVE-2023-53594
published 2025-10-04CVE-2023-53594: In the Linux kernel, the following vulnerability has been resolved: driver core: fix resource leak in device_add() When calling kobject_add() failed in…
PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.14%
3.4th percentile
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:
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
kobject_add_internal failed for mac80211_hwsim with -EEXIST, don't try to
register things with the same name in the same directory.
Affected
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.20-1 (bookworm) | linux 6.1.20-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | >= 3.10.105 < 3.11 | 3.11 |
| linux | linux | >= 3.12.70 < 3.13 | 3.13 |
| linux | linux | >= 4.4.40 < 4.5 | 4.5 |
| linux | linux | >= 4.8.16 < 4.9 | 4.9 |
| linux | linux | >= cebf8fd16900fdfd58c0028617944f808f97fe50 < 8d389e363075c2e1deb84a560686ea92123e4b8b | 8d389e363075c2e1deb84a560686ea92123e4b8b |
| linux | linux | >= cebf8fd16900fdfd58c0028617944f808f97fe50 < d1dbff10c6cd3b43457f3efd3c9c4950009635bf | d1dbff10c6cd3b43457f3efd3c9c4950009635bf |
| linux | linux | >= cebf8fd16900fdfd58c0028617944f808f97fe50 < f39d21154db87545d8f0b25d13c326f37cc32239 | f39d21154db87545d8f0b25d13c326f37cc32239 |
| linux | linux | >= cebf8fd16900fdfd58c0028617944f808f97fe50 < 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0 | 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0 |
| linux | linux_kernel | >= 0 < 6.1.20-1 | 6.1.20-1 |
| linux | linux_kernel | >= 0 < 6.1.20-1 | 6.1.20-1 |
| linux | linux_kernel | >= 0 < 6.1.20-1 | 6.1.20-1 |
| linux | linux_kernel | >= 3.10.105 < 3.11 | 3.11 |
| linux | linux_kernel | >= 3.12.70 < 3.13 | 3.13 |
| linux | linux_kernel | >= 4.4.40 < 4.5 | 4.5 |
| linux | linux_kernel | >= 4.8.16 < 5.15.99 | 5.15.99 |
| linux | linux_kernel | >= 5.16 < 6.1.16 | 6.1.16 |
| linux | linux_kernel | >= 6.2 < 6.2.3 | 6.2.3 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: driver core: fix resource leak in device_add()
vendor_redhat·2025-10-04·CVSS 5.5
CVE-2023-53594 [MEDIUM] CWE-771 kernel: driver core: fix resource leak in device_add()
kernel: driver core: fix resource leak in device_add()
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
Debian
CVE-2023-53594: linux - In the Linux kernel, the following vulnerability has been resolved: driver core...
vendor_debian·2023·CVSS 5.5
CVE-2023-53594 [MEDIUM] CVE-2023-53594: linux - In the Linux kernel, the following vulnerability has been resolved: driver core...
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/mac8021
VulDB
Linux Kernel up to 5.15.98/6.1.15/6.2.2 mac80211_hwsim.ko device_add stack-based overflow (EUVD-2023-60014 / Nessus ID 276910)
vuldb·2026-04-28·CVSS 5.5
CVE-2023-53594 [MEDIUM] Linux Kernel up to 5.15.98/6.1.15/6.2.2 mac80211_hwsim.ko device_add stack-based overflow (EUVD-2023-60014 / Nessus ID 276910)
A vulnerability marked as critical has been reported in Linux Kernel up to 5.15.98/6.1.15/6.2.2. The affected element is the function device_add in the library mac80211_hwsim.ko. Performing a manipulation results in stack-based buffer overflow.
This vulnerability is known as CVE-2023-53594. Access to the local network is required for this attack. No exploit is available.
It is suggested to upgrade the affected component.
OSV
CVE-2023-53594: In the Linux kernel, the following vulnerability has been resolved: driver core: fix resource leak in device_add() When calling kobject_add() failed i
osv·2025-10-04·CVSS 5.5
CVE-2023-53594 [MEDIUM] CVE-2023-53594: In the Linux kernel, the following vulnerability has been resolved: driver core: fix resource leak in device_add() When calling kobject_add() failed i
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/mac8021
GHSA
GHSA-h86p-mcmj-rh92: In the Linux kernel, the following vulnerability has been resolved:
driver core: fix resource leak in device_add()
When calling kobject_add() failed
ghsa_unreviewed·2025-10-04
CVE-2023-53594 [MEDIUM] CWE-401 GHSA-h86p-mcmj-rh92: In the Linux kernel, the following vulnerability has been resolved:
driver core: fix resource leak in device_add()
When calling kobject_add() failed
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/mac
No detection rules found.
No public exploits indexed.
2025-10-04
Published