CVE-2023-53676 PUBLISHED

scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

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

scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()

The function lio_target_nacl_info_show() uses sprintf() in a loop to print details for every iSCSI connection in a session without checking for the buffer length. With enough iSCSI connections it's possible to overflow the buffer provided by configfs and corrupt the memory.

This patch replaces sprintf() with sysfs_emit_at() that checks for buffer boundries.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to df349e84c2cb0dd05d98c8e1189c26ab4b116083 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 114b44dddea1f8f99576de3c0e6e9059012002fc (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 2cbe6a88fbdd6e8aeab358eef61472e2de43d6f6 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to bbe3ff47bf09db8956bc2eeb49d2d514d256ad2a (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 5353df78c22623b42a71d51226d228a8413097e2 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 4738bf8b2d3635c2944b81b2a84d97b8c8b0978d (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 0cac6cbb9908309352a5d30c1876882771d3da50 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 801f287c93ff95582b0a2d2163f12870a2f076d4 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 4.14.326 to 4.14.* (incl.)
  • unaffected from 4.19.295 to 4.19.* (incl.)
  • unaffected from 5.4.257 to 5.4.* (incl.)
  • unaffected from 5.10.197 to 5.10.* (incl.)
  • unaffected from 5.15.133 to 5.15.* (incl.)
  • unaffected from 6.1.55 to 6.1.* (incl.)
  • unaffected from 6.5.5 to 6.5.* (incl.)
  • unaffected from 6.6 to * (incl.)

References