# CVE-2023-53307: rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-16T16:11:46.288Z
- Modified: 2026-06-17T06:44:48.370Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails

If getting an ID or setting up a work queue in rbd_dev_create() fails,
use-after-free on rbd_dev->rbd_client, rbd_dev->spec and rbd_dev->opts
is triggered in do_rbd_add().  The root cause is that the ownership of
these structures is transfered to rbd_dev prematurely and they all end
up getting freed when rbd_dev_create() calls rbd_dev_free() prior to
returning to do_rbd_add().

Found by Linux Verification Center (linuxtesting.org) with SVACE, an
incomplete patch submitted by Natalia Petrova <n.petrova@fintech.ru>.

(As written by CVE List.)

## Affected

- Linux Linux: from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before 71da2a151ed1adb0aea4252b16d81b53012e7afd; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before e3cbb4d60764295992c95344f2d779439e8b34ce; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before 9787b328c42c13c4f31e7d5042c4e877e9344068; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before ae16346078b1189aee934afd872d9f3d0a682c33; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before a73783e4e0c4d1507794da211eeca75498544dff; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before faa7b683e436664fff5648426950718277831348; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before cc8c0dd2984503ed09efa37bcafcef3d3da104e8; from 1643dfa4c2c827d6e2aa419df8c17b0f24090278 before f7c4d9b133c7a04ca619355574e96b6abf209fba; 4.9 (not affected: before 4.9; from 4.14.308 up to 4.14.*; from 4.19.276 up to 4.19.*; from 5.4.235 up to 5.4.*; from 5.10.173 up to 5.10.*; from 5.15.99 up to 5.15.*; from 6.1.16 up to 6.1.*; from 6.2.3 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.9 before 4.14.308; from 4.15 before 4.19.276; from 4.20 before 5.4.235; from 5.5 before 5.10.173; from 5.11 before 5.15.99; from 5.16 before 6.1.16; from 6.2 before 6.2.3

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd> (patch)
- <https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce> (patch)
- <https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068> (patch)
- <https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33> (patch)
- <https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff> (patch)
- <https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348> (patch)
- <https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8> (patch)
- <https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba> (patch)

## Sources

- CVE List: [CVE-2023-53307](https://www.cve.org/CVERecord?id=CVE-2023-53307), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53307](https://nvd.nist.gov/vuln/detail/CVE-2023-53307), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53307 · Whole record: https://cve.day/CVE-2023-53307.json · Rebuilt by cve.day 2026-11-25T22:58:34.821Z
