# CVE-2023-52975: scsi: iscsi\_tcp: Fix UAF during logout when accessing the shost ipaddress

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-03-27T16:43:15.322Z
- **Modified:** 2026-08-05T09:12:13.247Z

## Who should check

- Anyone running Linux \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 0af745fddefbd56198f4f35eb309215ee5f9e21e; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 17b738590b97fb3fc287289971d1519ff9b875a1; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 8859687f5b242c0b057461df0a9ff51d5500783b; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 6f1d64b13097e85abda0f91b5638000afc5f9a06
- Anyone running Linux 2.6.39

## Description

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

scsi: iscsi\_tcp: Fix UAF during logout when accessing the shost ipaddress

Bug report and analysis from Ding Hui.

During iSCSI session logout, if another task accesses the shost ipaddress
attr, we can get a KASAN UAF report like this:

\[  276.942144\] BUG: KASAN: use-after-free in \_raw\_spin\_lock\_bh+0x78/0xe0
\[  276.942535\] Write of size 4 at addr ffff8881053b45b8 by task cat/4088
\[  276.943511\] CPU: 2 PID: 4088 Comm: cat Tainted: G            E      6.1.0-rc8+ \#3
\[  276.943997\] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020
\[  276.944470\] Call Trace:
\[  276.944943\]  \<TASK\>
\[  276.945397\]  dump\_stack\_lvl+0x34/0x48
\[  276.945887\]  print\_address\_description.constprop.0+0x86/0x1e7
\[  276.946421\]  print\_report+0x36/0x4f
\[  276.947358\]  kasan\_report+0xad/0x130
\[  276.948234\]  kasan\_check\_range+0x35/0x1c0
\[  276.948674\]  \_raw\_spin\_lock\_bh+0x78/0xe0
\[  276.949989\]  iscsi\_sw\_tcp\_host\_get\_param+0xad/0x2e0 \[iscsi\_tcp\]
\[  276.951765\]  show\_host\_param\_ISCSI\_HOST\_PARAM\_IPADDRESS+0xe9/0x130 \[scsi\_transport\_iscsi\]
\[  276.952185\]  dev\_attr\_show+0x3f/0x80
\[  276.953005\]  sysfs\_kf\_seq\_show+0x1fb/0x3e0
\[  276.953401\]  seq\_read\_iter+0x402/0x1020
\[  276.954260\]  vfs\_read+0x532/0x7b0
\[  276.955113\]  ksys\_read+0xed/0x1c0
\[  276.955952\]  do\_syscall\_64+0x38/0x90
\[  276.956347\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  276.956769\] RIP: 0033:0x7f5d3a679222
\[  276.957161\] Code: c0 e9 b2 fe ff ff 50 48 8d 3d 32 c0 0b 00 e8 a5 fe 01 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 \<48\> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24
\[  276.958009\] RSP: 002b:00007ffc864d16a8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000000
\[  276.958431\] RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007f5d3a679222
\[  276.958857\] RDX: 0000000000020000 RSI: 00007f5d3a4fe000 RDI: 0000000000000003
\[  276.959281\] RBP: 00007f5d3a4fe000 R08: 00000000ffffffff R09: 0000000000000000
\[  276.959682\] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000020000
\[  276.960126\] R13: 0000000000000003 R14: 0000000000000000 R15: 0000557a26dada58
\[  276.960536\]  \</TASK\>
\[  276.961357\] Allocated by task 2209:
\[  276.961756\]  kasan\_save\_stack+0x1e/0x40
\[  276.962170\]  kasan\_set\_track+0x21/0x30
\[  276.962557\]  \_\_kasan\_kmalloc+0x7e/0x90
\[  276.962923\]  \_\_kmalloc+0x5b/0x140
\[  276.963308\]  iscsi\_alloc\_session+0x28/0x840 \[scsi\_transport\_iscsi\]
\[  276.963712\]  iscsi\_session\_setup+0xda/0xba0 \[libiscsi\]
\[  276.964078\]  iscsi\_sw\_tcp\_session\_create+0x1fd/0x330 \[iscsi\_tcp\]
\[  276.964431\]  iscsi\_if\_create\_session.isra.0+0x50/0x260 \[scsi\_transport\_iscsi\]
\[  276.964793\]  iscsi\_if\_recv\_msg+0xc5a/0x2660 \[scsi\_transport\_iscsi\]
\[  276.965153\]  iscsi\_if\_rx+0x198/0x4b0 \[scsi\_transport\_iscsi\]
\[  276.965546\]  netlink\_unicast+0x4d5/0x7b0
\[  276.965905\]  netlink\_sendmsg+0x78d/0xc30
\[  276.966236\]  sock\_sendmsg+0xe5/0x120
\[  276.966576\]  \_\_\_\_sys\_sendmsg+0x5fe/0x860
\[  276.966923\]  \_\_\_sys\_sendmsg+0xe0/0x170
\[  276.967300\]  \_\_sys\_sendmsg+0xc8/0x170
\[  276.967666\]  do\_syscall\_64+0x38/0x90
\[  276.968028\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[  276.968773\] Freed by task 2209:
\[  276.969111\]  kasan\_save\_stack+0x1e/0x40
\[  276.969449\]  kasan\_set\_track+0x21/0x30
\[  276.969789\]  kasan\_save\_free\_info+0x2a/0x50
\[  276.970146\]  \_\_kasan\_slab\_free+0x106/0x190
\[  276.970470\]  \_\_kmem\_cache\_free+0x133/0x270
\[  276.970816\]  device\_release+0x98/0x210
\[  276.971145\]  kobject\_cleanup+0x101/0x360
\[  276.971462\]  iscsi\_session\_teardown+0x3fb/0x530 \[libiscsi\]
\[  276.971775\]  iscsi\_sw\_tcp\_session\_destroy+0xd8/0x130 \[iscsi\_tcp\]
\[  276.972143\]  iscsi\_if\_recv\_msg+0x1bf1/0x2660 \[scsi\_transport\_iscsi\]
\[  276.972485\]  iscsi\_if\_rx+0x198/0x4b0 \[scsi\_transport\_iscsi\]
\[  276.972808\]  netlink\_unicast+0x4d5/0x7b0
\[  276.973201\]  netlink\_sendmsg+0x78d/0xc30
\[  276.973544\]  sock\_sendmsg+0xe5/0x120
\[  276.973864\]  \_\_\_\_sys\_sendmsg+0x5fe/0x860
\[  276.974248\]  \_\_\_sys\_
---truncated---

## Affected and fixed versions

- Linux: \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 0af745fddefbd56198f4f35eb309215ee5f9e21e; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 17b738590b97fb3fc287289971d1519ff9b875a1; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 8859687f5b242c0b057461df0a9ff51d5500783b; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 6f1d64b13097e85abda0f91b5638000afc5f9a06 (cvelist)
- Linux: 2.6.39 (cvelist)

## Mitigation

- Upgrade Linux to 6f1d64b13097e85abda0f91b5638000afc5f9a06 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52975. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52975.md
Affected: Linux >= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, < 0af745fddefbd56198f4f35eb309215ee5f9e21e; >= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, < 17b738590b97fb3fc287289971d1519ff9b875a1; >= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, < 8859687f5b242c0b057461df0a9ff51d5500783b; >= a79af8a64d395bd89de8695…
Fixed in: Linux 0af745fddefbd56198f4f35eb309215ee5f9e21e, Linux 17b738590b97fb3fc287289971d1519ff9b875a1, Linux 8859687f5b242c0b057461df0a9ff51d5500783b, Linux 6f1d64b13097e85abda0f91b5638000afc5f9a06

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52975 being exploited?

There is no confirmed exploitation: CVE-2023-52975 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52975?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52975?

Linux \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 0af745fddefbd56198f4f35eb309215ee5f9e21e; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 17b738590b97fb3fc287289971d1519ff9b875a1; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 8859687f5b242c0b057461df0a9ff51d5500783b; \>= a79af8a64d395bd89de8695a5ea5e1a7f01f02a8, \< 6f1d64b13097e85abda0f91b5638000afc5f9a06; Linux 2.6.39.

### Is there a fix for CVE-2023-52975?

Yes. Fixed in Linux 0af745fddefbd56198f4f35eb309215ee5f9e21e, Linux 17b738590b97fb3fc287289971d1519ff9b875a1, Linux 8859687f5b242c0b057461df0a9ff51d5500783b, Linux 6f1d64b13097e85abda0f91b5638000afc5f9a06. Upgrade Linux to 6f1d64b13097e85abda0f91b5638000afc5f9a06 or later.

### How do I check if I'm affected by CVE-2023-52975?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0af745fddefbd56198f4f35eb309215ee5f9e21e>
- patch: <https://git.kernel.org/stable/c/17b738590b97fb3fc287289971d1519ff9b875a1>
- patch: <https://git.kernel.org/stable/c/8859687f5b242c0b057461df0a9ff51d5500783b>
- patch: <https://git.kernel.org/stable/c/6f1d64b13097e85abda0f91b5638000afc5f9a06>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52975>

HTML: <https://flawdb.com/CVE-2023-52975> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52975>
