{"id":"CVE-2023-53596","aliases":["CVE-2023-53596"],"related":[],"kind":"vulnerability","state":"published","title":"drivers: base: Free devm resources when unregistering a device","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: base: Free devm resources when unregistering a device\n\nIn the current code, devres_release_all() only gets called if the device\nhas a bus and has been probed.\n\nThis leads to issues when using bus-less or driver-less devices where\nthe device might never get freed if a managed resource holds a reference\nto the device. This is happening in the DRM framework for example.\n\nWe should thus call devres_release_all() in the device_del() function to\nmake sure that the device-managed actions are properly executed when the\ndevice is unregistered, even if it has neither a bus nor a driver.\n\nThis is effectively the same change than commit 2f8d16a996da (\"devres:\nrelease resources on device_del()\") that got reverted by commit\na525a3ddeaca (\"driver core: free devres in device_release\") over\nmemory leaks concerns.\n\nThis patch effectively combines the two commits mentioned above to\nrelease the resources both on device_del() and device_release() and get\nthe best of both worlds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: base: Free devm resources when unregistering a device\n\nIn the current code, devres_release_all() only gets called if the device\nhas a bus and has been probed.\n\nThis leads to issues when using bus-less or driver-less devices where\nthe device might never get freed if a managed resource holds a reference\nto the device. This is happening in the DRM framework for example.\n\nWe should thus call devres_release_all() in the device_del() function to\nmake sure that the device-managed actions are properly executed when the\ndevice is unregistered, even if it has neither a bus nor a driver.\n\nThis is effectively the same change than commit 2f8d16a996da (\"devres:\nrelease resources on device_del()\") that got reverted by commit\na525a3ddeaca (\"driver core: free devres in device_release\") over\nmemory leaks concerns.\n\nThis patch effectively combines the two commits mentioned above to\nrelease the resources both on device_del() and device_release() and get\nthe best of both worlds.","source":"cvelist"}],"published":"2025-10-04T15:44:08.942Z","modified":"2026-11-05T21:17:27.773Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"a525a3ddeaca69f405d98442ab3c0746e53168dc","fixed":"83e2ec36a92432e9445e853c12becbbae353b511","status":"affected"},{"type":"git","introduced":"a525a3ddeaca69f405d98442ab3c0746e53168dc","fixed":"b9ef4b0aa91d2f9f5951faafdbbd47cf01799ec3","status":"affected"},{"type":"git","introduced":"a525a3ddeaca69f405d98442ab3c0746e53168dc","fixed":"297992e5c63528e603666e36081836204fc36ec9","status":"affected"},{"type":"git","introduced":"a525a3ddeaca69f405d98442ab3c0746e53168dc","fixed":"3bcc4c2a096e8342c8c719e595ce15de212694dd","status":"affected"},{"type":"git","introduced":"a525a3ddeaca69f405d98442ab3c0746e53168dc","fixed":"c8c426fae26086a0ca8ab6cc6da2de79810ec038","status":"affected"},{"type":"git","introduced":"a525a3ddeaca69f405d98442ab3c0746e53168dc","fixed":"699fb50d99039a50e7494de644f96c889279aca3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.7","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.53","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.16","lastAffected":"6.4.*","status":"unaffected"},{"type":"semver","introduced":"6.5.3","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.7","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.53"},{"status":"affected","introduced":"6.2","fixed":"6.4.16"},{"status":"affected","introduced":"6.5","fixed":"6.5.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/83e2ec36a92432e9445e853c12becbbae353b511","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9ef4b0aa91d2f9f5951faafdbbd47cf01799ec3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/297992e5c63528e603666e36081836204fc36ec9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3bcc4c2a096e8342c8c719e595ce15de212694dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8c426fae26086a0ca8ab6cc6da2de79810ec038","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/699fb50d99039a50e7494de644f96c889279aca3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:24:54.459Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53596","url":"https://www.cve.org/CVERecord?id=CVE-2023-53596","licence":"CVE Terms of Use","modified":"2026-11-05T20:31:16.441Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53596","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53596","licence":"Public domain","modified":"2026-11-05T21:17:27.773Z"}],"updatedAt":"2026-11-25T22:58:34.959Z","epss":{"score":0.00159,"percentile":0.05276,"date":"2026-12-01T12:00:22.000Z"}}