Skip to main content
Network Thinking Solutions Logo

CVE-2023-53594

Linux kernel: driver core: fix resource leak in device_add()

All CVEs
CVE-2023-53594Published 10/4/2025

Linux kernel: driver core: fix resource leak in device_add()

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
10/4/2025
Last modified
11/5/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 3.10.105, < 3.11

Verify advisory

Source
linux kernel
linux
≥ 3.12.70, < 3.13

Verify advisory

Source
linux kernel
linux
≥ 4.4.40, < 4.5

Verify advisory

Source
linux kernel
linux
≥ 4.8.16, < 5.15.99

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.16

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.2.3

Verify advisory

Source
Linux
Linux
≥ cebf8fd16900fdfd58c0028617944f808f97fe50, < 8d389e363075c2e1deb84a560686ea92123e4b8b

Verify advisory

Source
Linux
Linux
≥ cebf8fd16900fdfd58c0028617944f808f97fe50, < d1dbff10c6cd3b43457f3efd3c9c4950009635bf

Verify advisory

Source
Linux
Linux
≥ cebf8fd16900fdfd58c0028617944f808f97fe50, < f39d21154db87545d8f0b25d13c326f37cc32239

Verify advisory

Source
Linux
Linux
≥ cebf8fd16900fdfd58c0028617944f808f97fe50, < 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0

Verify advisory

Source
Linux
Linux
e7f6e3c9db4b6f259c89fd05728d024ab32acd71

Verify advisory

Source
Linux
Linux
a93a63333dbdb182b87e8cc99df8b4474f867acb

Verify advisory

Source
Linux
Linux
37de955c11b59050346e530143c20b10b4846527

Verify advisory

Source
Linux
Linux
645897231f960590220144b06d1f994b7eb88326

Verify advisory

Source
Linux
Linux
≥ 3.10.105, < 3.11

Verify advisory

Source
Linux
Linux
≥ 3.12.70, < 3.13

Verify advisory

Source
Linux
Linux
≥ 4.4.40, < 4.5

Verify advisory

Source
Linux
Linux
≥ 4.8.16, < 4.9

Verify advisory

Source
Linux
Linux
4.9

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.