# CVE-2023-53596: drivers: base: Free devm resources when unregistering a device

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-04 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2023-53596, DEBIAN-CVE-2023-53596
- Record: https://cvemate.com/vulnerability/CVE-2023-53596 · JSON: https://cvemate.com/vulnerability/CVE-2023-53596/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

drivers: base: Free devm resources when unregistering a device

In the current code, devres_release_all() only gets called if the device
has a bus and has been probed.

This leads to issues when using bus-less or driver-less devices where
the device might never get freed if a managed resource holds a reference
to the device. This is happening in the DRM framework for example.

We should thus call devres_release_all() in the device_del() function to
make sure that the device-managed actions are properly executed when the
device is unregistered, even if it has neither a bus nor a driver.

This is effectively the same change than commit 2f8d16a996da ("devres:
release resources on device_del()") that got reverted by commit
a525a3ddeaca ("driver core: free devres in device_release") over
memory leaks concerns.

This patch effectively combines the two commits mentioned above to
release the resources both on device_del() and device_release() and get
the best of both worlds.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.165%, percentile 5.942%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 128)

- debian linux (Debian): \< 6.1.55-1 \| \< 6.5.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-186.196
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.126
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/83e2ec36a92432e9445e853c12becbbae353b511>
- <https://git.kernel.org/stable/c/b9ef4b0aa91d2f9f5951faafdbbd47cf01799ec3>
- <https://git.kernel.org/stable/c/297992e5c63528e603666e36081836204fc36ec9>
- <https://git.kernel.org/stable/c/3bcc4c2a096e8342c8c719e595ce15de212694dd>
- <https://git.kernel.org/stable/c/c8c426fae26086a0ca8ab6cc6da2de79810ec038>
- <https://git.kernel.org/stable/c/699fb50d99039a50e7494de644f96c889279aca3>
- <https://ubuntu.com/security/CVE-2023-53596>
- <https://www.cve.org/CVERecord?id=CVE-2023-53596>
- <https://git.kernel.org/linus/699fb50d99039a50e7494de644f96c889279aca3>
- <https://ubuntu.com/security/notices/USN-8575-1>
- <https://ubuntu.com/security/notices/USN-8576-1>
- <https://ubuntu.com/security/notices/USN-8575-2>
- <https://ubuntu.com/security/notices/USN-8576-2>
- <https://ubuntu.com/security/notices/USN-8575-3>
- <https://ubuntu.com/security/notices/USN-8610-1>
- <https://ubuntu.com/security/notices/USN-8620-1>
- <https://ubuntu.com/security/notices/USN-8620-2>
- <https://ubuntu.com/security/notices/USN-8620-3>
- <https://ubuntu.com/security/notices/USN-8620-4>
- <https://ubuntu.com/security/notices/USN-8668-1>

---

Data as of 2026-12-05T04:21:00.439Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
