{"id":"CVE-2023-53307","aliases":["CVE-2023-53307"],"related":[],"kind":"vulnerability","state":"published","title":"rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails\n\nIf getting an ID or setting up a work queue in rbd_dev_create() fails,\nuse-after-free on rbd_dev->rbd_client, rbd_dev->spec and rbd_dev->opts\nis triggered in do_rbd_add().  The root cause is that the ownership of\nthese structures is transfered to rbd_dev prematurely and they all end\nup getting freed when rbd_dev_create() calls rbd_dev_free() prior to\nreturning to do_rbd_add().\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE, an\nincomplete patch submitted by Natalia Petrova <n.petrova@fintech.ru>.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails\n\nIf getting an ID or setting up a work queue in rbd_dev_create() fails,\nuse-after-free on rbd_dev->rbd_client, rbd_dev->spec and rbd_dev->opts\nis triggered in do_rbd_add().  The root cause is that the ownership of\nthese structures is transfered to rbd_dev prematurely and they all end\nup getting freed when rbd_dev_create() calls rbd_dev_free() prior to\nreturning to do_rbd_add().\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE, an\nincomplete patch submitted by Natalia Petrova <n.petrova@fintech.ru>.","source":"cvelist"}],"published":"2025-09-16T16:11:46.288Z","modified":"2026-06-17T06:44:48.370Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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"},{"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-416"],"affected":[{"ranges":[{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"71da2a151ed1adb0aea4252b16d81b53012e7afd","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"e3cbb4d60764295992c95344f2d779439e8b34ce","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"9787b328c42c13c4f31e7d5042c4e877e9344068","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"ae16346078b1189aee934afd872d9f3d0a682c33","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"a73783e4e0c4d1507794da211eeca75498544dff","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"faa7b683e436664fff5648426950718277831348","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"cc8c0dd2984503ed09efa37bcafcef3d3da104e8","status":"affected"},{"type":"git","introduced":"1643dfa4c2c827d6e2aa419df8c17b0f24090278","fixed":"f7c4d9b133c7a04ca619355574e96b6abf209fba","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"4.14.308","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.276","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.235","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.173","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.99","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.16","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.3","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","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":"4.9","fixed":"4.14.308"},{"status":"affected","introduced":"4.15","fixed":"4.19.276"},{"status":"affected","introduced":"4.20","fixed":"5.4.235"},{"status":"affected","introduced":"5.5","fixed":"5.10.173"},{"status":"affected","introduced":"5.11","fixed":"5.15.99"},{"status":"affected","introduced":"5.16","fixed":"6.1.16"},{"status":"affected","introduced":"6.2","fixed":"6.2.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-14T18:23:38.883Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53307","url":"https://www.cve.org/CVERecord?id=CVE-2023-53307","licence":"CVE Terms of Use","modified":"2026-05-11T19:42:24.877Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53307","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53307","licence":"Public domain","modified":"2026-06-17T06:44:48.370Z"}],"updatedAt":"2026-11-25T22:58:34.821Z","epss":{"score":0.00172,"percentile":0.0687,"date":"2026-12-01T12:00:22.000Z"}}