CVE-2026-23216 PUBLISHED

scsi: target: iscsi: Fix use-after-free in iscsit_dec_conn_usage_count()

Assigner: Linux
Reserved: 13.01.2026 Published: 18.02.2026 Updated: 18.02.2026

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

scsi: target: iscsi: Fix use-after-free in iscsit_dec_conn_usage_count()

In iscsit_dec_conn_usage_count(), the function calls complete() while holding the conn->conn_usage_lock. As soon as complete() is invoked, the waiter (such as iscsit_close_connection()) may wake up and proceed to free the iscsit_conn structure.

If the waiter frees the memory before the current thread reaches spin_unlock_bh(), it results in a KASAN slab-use-after-free as the function attempts to release a lock within the already-freed connection structure.

Fix this by releasing the spinlock before calling complete().

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to ba684191437380a07b27666eb4e72748be1ea201 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 8518f072fc92921418cd9ed4268dd4f3e9a8fd75 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 275016a551ba1a068a3bd6171b18611726b67110 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 73b487d44bf4f92942629d578381f89c326ff77f (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 48fe983e92de2c59d143fe38362ad17ba23ec7f3 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 3835e49e146a4e6e7787b29465f1a23379b6ec44 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 9411a89e9e7135cc459178fa77a3f1d6191ae903 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 5.10.250 to 5.10.* (incl.)
  • unaffected from 5.15.200 to 5.15.* (incl.)
  • unaffected from 6.1.163 to 6.1.* (incl.)
  • unaffected from 6.6.124 to 6.6.* (incl.)
  • unaffected from 6.12.70 to 6.12.* (incl.)
  • unaffected from 6.18.10 to 6.18.* (incl.)
  • unaffected from 6.19 to * (incl.)

References