# CVE-2023-52974: scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2025-03-27T16:43:13.792Z
- Modified: 2026-08-05T09:12:12.182Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress

If during iscsi_sw_tcp_session_create() iscsi_tcp_r2tpool_alloc() fails,
userspace could be accessing the host's ipaddress attr. If we then free the
session via iscsi_session_teardown() while userspace is still accessing the
session we will hit a use after free bug.

Set the tcp_sw_host->session after we have completed session creation and
can no longer fail.

(As written by CVE List.)

## Affected

- Linux Linux: from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 496af9d3682ed4c28fb734342a09e6cc0c056ea4; from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 6abd4698f4c8a78e7bbfc421205c060c199554a0; from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before d4d765f4761f9e3a2d62992f825aeee593bcb6b9; from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 9758ffe1c07b86aefd7ca8e40d9a461293427ca0; from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 0aaabdb900c7415caa2006ef580322f7eac5f6b6; from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before 61e43ebfd243bcbad11be26bd921723027b77441; from a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 before f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3; 2.6.39 (not affected: before 2.6.39; from 4.14.306 up to 4.14.*; from 4.19.273 up to 4.19.*; from 5.4.232 up to 5.4.*; from 5.10.168 up to 5.10.*; from 5.15.93 up to 5.15.*; from 6.1.11 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: before 4.14.306; from 4.15 before 4.19.273; from 4.20 before 5.4.232; from 5.5 before 5.10.168; from 5.11 before 5.15.93; from 5.16 before 6.1.11; 6.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/496af9d3682ed4c28fb734342a09e6cc0c056ea4> (patch)
- <https://git.kernel.org/stable/c/6abd4698f4c8a78e7bbfc421205c060c199554a0> (patch)
- <https://git.kernel.org/stable/c/d4d765f4761f9e3a2d62992f825aeee593bcb6b9> (patch)
- <https://git.kernel.org/stable/c/9758ffe1c07b86aefd7ca8e40d9a461293427ca0> (patch)
- <https://git.kernel.org/stable/c/0aaabdb900c7415caa2006ef580322f7eac5f6b6> (patch)
- <https://git.kernel.org/stable/c/61e43ebfd243bcbad11be26bd921723027b77441> (patch)
- <https://git.kernel.org/stable/c/f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3> (patch)

## Sources

- CVE List: [CVE-2023-52974](https://www.cve.org/CVERecord?id=CVE-2023-52974), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52974](https://nvd.nist.gov/vuln/detail/CVE-2023-52974), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52974 · Whole record: https://cve.day/CVE-2023-52974.json · Rebuilt by cve.day 2026-11-25T22:58:34.580Z
