CVE-2023-52974 json
scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
published 2025-03-27 19 mo ago modified 2026-08-05 3 mo ago also EUVD-2023-59746
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.14.306, 4.19.273, 5.4.232, 5.10.168, 5.15.93, 6.1.11, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.11-1
debian advisories DEBIAN-CVE-2023-52974
- linux Ubuntu 18.04 LTS 4.15.0-211.222
- linux Ubuntu 20.04 LTS 5.4.0-149.166
- linux Ubuntu 22.04 LTS 5.15.0-72.79
- linux-aws Ubuntu 18.04 LTS 4.15.0-1156.169
- linux-aws Ubuntu 20.04 LTS 5.4.0-1102.110
- linux-aws Ubuntu 22.04 LTS 5.15.0-1036.40
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1105.114
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1034.42
ubuntu advisories UBUNTU-CVE-2023-52974
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-kvm RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-core RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-modules RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-debug-kvm RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-debug-core RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-debug-modules RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
- kernel-rt-modules-extra RHEL 9.0 EUS 5.14.0-70.85.1.rt21.156.el9_0
red hat advisories RHSA-2024:0431RHSA-2024:0432RHSA-2024:0575
- kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.201.1
- kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-default SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +5 more 5.3.18-150300.59.201.1
- kernel-preempt SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-obs-build SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-default-base SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 5.3.18-150300.59.201.1.150300.18.120.1
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.100.1
suse advisories SUSE-SU-2025:02099-1SUSE-SU-2025:1293-1SUSE-SU-2025:1263-1SUSE-SU-2025:1241-1SUSE-SU-2025:1195-1SUSE-SU-2025:1194-1
- git.kernel.org/stable/c/496af9d3682ed4c28fb734342a09e6cc0c056ea4 commit
- git.kernel.org/stable/c/6abd4698f4c8a78e7bbfc421205c060c199554a0 commit
- git.kernel.org/stable/c/d4d765f4761f9e3a2d62992f825aeee593bcb6b9 commit
- git.kernel.org/stable/c/9758ffe1c07b86aefd7ca8e40d9a461293427ca0 commit
- git.kernel.org/stable/c/0aaabdb900c7415caa2006ef580322f7eac5f6b6 commit
- git.kernel.org/stable/c/61e43ebfd243bcbad11be26bd921723027b77441 commit
- git.kernel.org/stable/c/f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-52974 updated cvss 7.0
kernel: scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available
-
Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-debuginfo-common-x86_64 4.18.0-477.43.1.el8_8, kernel-debuginfo-common-aarch64 4.18.0-477.43.1.el8_8, kernel-debuginfo-common-ppc64le 4.18.0-477.43.1.el8_8fixed: vendor fix RHSA-2024:0575
-
Red Hat CodeReady Linux Builder EUS (v.9.0) kernel-debuginfo-common-s390x 5.14.0-70.85.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.85.1.el9_0, kernel-debuginfo-common-aarch64 5.14.0-70.85.1.el9_0, kernel-debuginfo-common-ppc64le 5.14.0-70.85.1.el9_0 Red Hat Enterprise Linux AppStream EUS (v.9.0) perf 5.14.0-70.85.1.el9_0, kernel-devel-matched 5.14.0-70.85.1.el9_0, kernel-debug-devel-matched 5.14.0-70.85.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.85.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.85.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.85.1.el9_0, +2 morefixed: vendor fix RHSA-2024:0432
-
Red Hat Enterprise Linux BaseOS EUS (v.8.8) perf 4.18.0-477.43.1.el8_8, kernel 4.18.0-477.43.1.el8_8, bpftool 4.18.0-477.43.1.el8_8, kernel-core 4.18.0-477.43.1.el8_8, kernel-tools 4.18.0-477.43.1.el8_8, python3-perf 4.18.0-477.43.1.el8_8, +15 morefixed: vendor fix RHSA-2024:0575
-
Red Hat Enterprise Linux BaseOS EUS (v.9.0) kernel 5.14.0-70.85.1.el9_0, bpftool 5.14.0-70.85.1.el9_0, kernel-core 5.14.0-70.85.1.el9_0, kernel-tools 5.14.0-70.85.1.el9_0, python3-perf 5.14.0-70.85.1.el9_0, kernel-modules 5.14.0-70.85.1.el9_0, +14 morefixed: vendor fix RHSA-2024:0432
show 2 moreshow fewer
-
Red Hat Enterprise Linux Real Time EUS (v.9.0) kernel-rt 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-core 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-modules 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-debug-core 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-debug-modules 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-modules-extra 5.14.0-70.85.1.rt21.156.el9_0, +2 more Red Hat Enterprise Linux Real Time for NFV EUS (v.9.0) kernel-rt 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-kvm 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-core 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-modules 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-debug-kvm 5.14.0-70.85.1.rt21.156.el9_0, kernel-rt-debug-core 5.14.0-70.85.1.rt21.156.el9_0, +4 morefixed: vendor fix RHSA-2024:0431
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/496af9d3682ed4c28fb734342a09e6cc0c056ea4
patch
-
git.kernel.org
/stable/c/6abd4698f4c8a78e7bbfc421205c060c199554a0
patch
-
git.kernel.org
/stable/c/d4d765f4761f9e3a2d62992f825aeee593bcb6b9
patch
-
git.kernel.org
/stable/c/9758ffe1c07b86aefd7ca8e40d9a461293427ca0
patch
-
git.kernel.org
/stable/c/0aaabdb900c7415caa2006ef580322f7eac5f6b6
patch
-
git.kernel.org
/stable/c/61e43ebfd243bcbad11be26bd921723027b77441
patch
-
git.kernel.org
/stable/c/f484a794e4ee2a9ce61f52a78e810ac45f3fe3b3
patch
Sources
- CVE List CVE-2023-52974
- NVD CVE-2023-52974
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.