# CVE-2023-53594: driver core: fix resource leak in device\_add()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-04T15:44:07.533Z
- **Modified:** 2026-11-05T21:17:27.610Z

## Who should check

- Anyone running Linux \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< 8d389e363075c2e1deb84a560686ea92123e4b8b; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< d1dbff10c6cd3b43457f3efd3c9c4950009635bf; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< f39d21154db87545d8f0b25d13c326f37cc32239; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0; e7f6e3c9db4b6f259c89fd05728d024ab32acd71; a93a63333dbdb182b87e8cc99df8b4474f867acb; 37de955c11b59050346e530143c20b10b4846527; 645897231f960590220144b06d1f994b7eb88326; \>= 3.10.105, \< 3.11; \>= 3.12.70, \< 3.13; …
- Anyone running Linux 4.9

## 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.

## Affected and fixed versions

- Linux: \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< 8d389e363075c2e1deb84a560686ea92123e4b8b; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< d1dbff10c6cd3b43457f3efd3c9c4950009635bf; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< f39d21154db87545d8f0b25d13c326f37cc32239; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0; e7f6e3c9db4b6f259c89fd05728d024ab32acd71; a93a63333dbdb182b87e8cc99df8b4474f867acb; 37de955c11b59050346e530143c20b10b4846527; 645897231f960590220144b06d1f994b7eb88326; \>= 3.10.105, \< 3.11; \>= 3.12.70, \< 3.13; … (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53594. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53594.md
Affected: Linux >= cebf8fd16900fdfd58c0028617944f808f97fe50, < 8d389e363075c2e1deb84a560686ea92123e4b8b; >= cebf8fd16900fdfd58c0028617944f808f97fe50, < d1dbff10c6cd3b43457f3efd3c9c4950009635bf; >= cebf8fd16900fdfd58c0028617944f808f97fe50, < f39d21154db87545d8f0b25d13c326f37cc32239; >= cebf8fd16900fdfd58c0028…
Fixed in: Linux 8d389e363075c2e1deb84a560686ea92123e4b8b, Linux 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0, Linux 3.11, Linux 3.13

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53594 being exploited?

There is no confirmed exploitation: CVE-2023-53594 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53594?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53594?

Linux \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< 8d389e363075c2e1deb84a560686ea92123e4b8b; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< d1dbff10c6cd3b43457f3efd3c9c4950009635bf; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< f39d21154db87545d8f0b25d13c326f37cc32239; \>= cebf8fd16900fdfd58c0028617944f808f97fe50, \< 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0; e7f6e3c9db4b6f259c89fd05728d024ab32acd71; a93a63333dbdb182b87e8cc99df8b4474f867acb; 37de955c11b59050346e530143c20b10b4846527; 645897231f960590220144b06d1f994b7eb88326; \>= 3.10.105, \< 3.11; \>= 3.12.70, \< 3.13; …; Linux 4.9.

### Is there a fix for CVE-2023-53594?

Yes. Fixed in Linux 8d389e363075c2e1deb84a560686ea92123e4b8b, Linux 6977b1a5d67097eaa4d02b0c126c04cc6e8917c0, Linux 3.11, Linux 3.13. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53594?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8d389e363075c2e1deb84a560686ea92123e4b8b>
- patch: <https://git.kernel.org/stable/c/d1dbff10c6cd3b43457f3efd3c9c4950009635bf>
- patch: <https://git.kernel.org/stable/c/f39d21154db87545d8f0b25d13c326f37cc32239>
- patch: <https://git.kernel.org/stable/c/6977b1a5d67097eaa4d02b0c126c04cc6e8917c0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53594>

HTML: <https://flawdb.com/CVE-2023-53594> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53594>
