{"id":"CVE-2021-47427","published":"2024-05-21T15:04:13Z","modified":"2026-08-05T08:47:46Z","title":"scsi: iscsi: Fix iscsi_task use after free","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: iscsi: Fix iscsi_task use after free\n\nCommit d39df158518c (\"scsi: iscsi: Have abort handler get ref to conn\")\nadded iscsi_get_conn()/iscsi_put_conn() calls during abort handling but\nthen also changed the handling of the case where we detect an already\ncompleted task where we now end up doing a goto to the common put/cleanup\ncode. This results in a iscsi_task use after free, because the common\ncleanup code will do a put on the iscsi_task.\n\nThis reverts the goto and moves the iscsi_get_conn() to after we've checked\nif the iscsi_task is valid.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00462,"percentile":0.40932,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/1642f51ac0d4f2b55d5748094c49ff8f7191b93c","tags":[]},{"url":"https://git.kernel.org/stable/c/258aad75c62146453d03028a44f2f1590d58e1f6","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":8.19},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d39df158518ccc3bf24ee18082b5e100c8f014aa, < 1642f51ac0d4f2b55d5748094c49ff8f7191b93c",">= d39df158518ccc3bf24ee18082b5e100c8f014aa, < 258aad75c62146453d03028a44f2f1590d58e1f6"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:37:44.486165Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34432","exploited":false,"provenance":"source"}}