scsi: xen: scsiback: Free the command tag on the TMR submit-failure path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fbc1bdede66d0f2cde83b75d6524ce1a815bb69f, Kernel 1357fb32d42ad8da193e6da285f09e6452feabda, Kernel 18d4f86816592586b38513543b5e1f9553bc271f and 10 more.
In the Linux kernel, the following vulnerability has been resolved: scsi: xen: scsiback: Free the command tag on the TMR submit-failure path scsiback_device_action() obtains a command tag in scsiback_get_pend_req() and submits a task-management request with target_submit_tmr(). When target_submit_tmr() fails it returns < 0 and scsiback jumps to the err: label, which sends a response but frees nothing, leaking the tag. Impact: a pvSCSI guest can leak the command tags of a LUN's session, stopping the LUN, by issuing VSCSIIF_ACT_SCSI_ABORT or RESET requests whenever target_submit_tmr() fails. transport_generic_free_cmd() cannot be used here. By the time target_submit_tmr() returns an error it has already run __target_init_cmd() (so se_cmd->cmd_kref is one, not zero), and on its target_get_sess_cmd() error path it has freed se_cmd->se_tmr_req via core_tmr_release_req() while leaving SCF_SCSI_TMR_CDB set and the pointer dangling. Letting the command release run target_free_cmd_mem() would then double-free se_tmr_req. Use the same helper, which returns just the tag, on this path too.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <fbc1bdede66d0f2cde83b75d6524ce1a815bb69f, >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <1357fb32d42ad8da193e6da285f09e6452feabda, >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <18d4f86816592586b38513543b5e1f9553bc271f, >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <255fb7b0cdc947b1c01929c7f133281342a3a6b5, >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <4567ce79fe2f84c3dcc3a91b22a377cf482d33ad, >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <66aefc277ebb796ec285d550305535dc3fc0179f, >=2dbcdf33dbf61f44b29adb52338282c3d7840d0e <6c01f0439098f00a64b246dc27479602201382f7, =4.6 | fbc1bdede66d0f2cde83b75d6524ce1a815bb69f, 1357fb32d42ad8da193e6da285f09e6452feabda, 18d4f86816592586b38513543b5e1f9553bc271f, 255fb7b0cdc947b1c01929c7f133281342a3a6b5, 4567ce79fe2f84c3dcc3a91b22a377cf482d33ad, 66aefc277ebb796ec285d550305535dc3fc0179f, 6c01f0439098f00a64b246dc27479602201382f7 |
| linux-kernel: Kernel | >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=4.6.0 <5.15.212 | 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.15.212 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket