{"id":"CVE-2023-53307","published":"2025-09-16T16:11:46Z","modified":"2026-05-11T19:42:24Z","title":"rbd: avoid use-after-free in do_rbd_add() when rbd_dev_create() fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"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>.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00172,"percentile":0.06747,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/71da2a151ed1adb0aea4252b16d81b53012e7afd","tags":[]},{"url":"https://git.kernel.org/stable/c/e3cbb4d60764295992c95344f2d779439e8b34ce","tags":[]},{"url":"https://git.kernel.org/stable/c/9787b328c42c13c4f31e7d5042c4e877e9344068","tags":[]},{"url":"https://git.kernel.org/stable/c/ae16346078b1189aee934afd872d9f3d0a682c33","tags":[]},{"url":"https://git.kernel.org/stable/c/a73783e4e0c4d1507794da211eeca75498544dff","tags":[]},{"url":"https://git.kernel.org/stable/c/faa7b683e436664fff5648426950718277831348","tags":[]},{"url":"https://git.kernel.org/stable/c/cc8c0dd2984503ed09efa37bcafcef3d3da104e8","tags":[]},{"url":"https://git.kernel.org/stable/c/f7c4d9b133c7a04ca619355574e96b6abf209fba","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.35},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 71da2a151ed1adb0aea4252b16d81b53012e7afd",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < e3cbb4d60764295992c95344f2d779439e8b34ce",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < 9787b328c42c13c4f31e7d5042c4e877e9344068",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < ae16346078b1189aee934afd872d9f3d0a682c33",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < a73783e4e0c4d1507794da211eeca75498544dff",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < faa7b683e436664fff5648426950718277831348",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < cc8c0dd2984503ed09efa37bcafcef3d3da104e8",">= 1643dfa4c2c827d6e2aa419df8c17b0f24090278, < f7c4d9b133c7a04ca619355574e96b6abf209fba"]},{"vendor":"Linux","product":"Linux","versions":["4.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-14T18:23:38.883283Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59954","exploited":false,"provenance":"source"}}