Read the docs
TI-2022-25936 Aliases CVE-2022-50459GHSA-f7xj-99j9-66q2

scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()

Priority LOW 33CWE-476Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 3 fixed, 4 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-476.

Summary

In the Linux kernel, the following vulnerability has been resolved: scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername() Fix a NULL pointer crash that occurs when we are freeing the socket at the same time we access it via sysfs. The problem is that: 1. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() take the frwd_lock and do sock_hold() then drop the frwd_lock. sock_hold() does a get on the "struct sock". 2. iscsi_sw_tcp_release_conn() does sockfd_put() which does the last put on the "struct socket" and that does __sock_release() which sets the sock->ops to NULL. 3. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() then call kernel_getpeername() which accesses the NULL sock->ops. Above we do a get on the "struct sock", but we needed a get on the "struct socket". Originally, we just held the frwd_lock the entire time but in commit bcf3a2953d36 ("scsi: iscsi: iscsi_tcp: Avoid holding spinlock while calling getpeername()") we switched to refcount based because the network layer changed and started taking a mutex in that path, so we could no longer hold the frwd_lock. Instead of trying to maintain multiple refcounts, this just has us use a mutex for accessing the socket in the interface code paths.

Why it matters now

EPSS 0.0018 7th percentileScored 2026-11-07
Fix Partial Linux (Linux): 5.9, 5.10.150, 5.15.75 +3Red Hat: 1 advisoryRed Hat: 3 fixed, 4 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
LinuxLinux5.8.14 to before 5.95.9Patch availableCNA
LinuxLinux5.9 and later5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1Patch availableCNA
  • Linux VendorLinux Affected 5.8.14 to before 5.9 Fixed in 5.9 Patch available CNA
  • Linux VendorLinux Affected 5.9 and later Fixed in 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1 Patch available CNA

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*5.8.14 to before 5.9; 5.9.1 to before 5.10.150; 5.11 to before 5.15.75; 5.16 to before 5.19.17; 6.0 to before 6.0.3VulnerableLinux
cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:*5.9VulnerableLinux
cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:*5.9 rc8VulnerableLinux
  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 5.8.14 to before 5.9; 5.9.1 to before 5.10.150; 5.11 to before 5.15.75; 5.16 to before 5.19.17; 6.0 to before 6.0.3 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:* Versions 5.9 Vulnerable ·Linux
  • cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:* Versions 5.9 rc8 Vulnerable ·Linux

Remediation

  • Fix · CNA Linux (Linux) Fixed in 5.9
  • Fix · CNA Linux (Linux) Fixed in 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1

Red Hat 1 advisory

  • RHSA-2023:2458 Released 2023-05-09 · Red Hat rating Important
    kernel security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-284.11.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.11.1.el9_2, kernel-64k-devel-5.14.0-284.11.1.el9_2 +10
    • Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.0.0-284.11.1.el9_2, kernel-5.14.0-284.11.1.el9_2, kernel-64k-5.14.0-284.11.1.el9_2 +29
    • Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-284.11.1.el9_2

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 8AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2023:2458
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2023:2458
Red Hat Enterprise Linux CRB (v. 9)Fixed RHSA-2023:2458
Not affected: 1 product
  • Red Hat Enterprise Linux 10

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-50459
  2. 2026-10-03 Alias added: GHSA-f7xj-99j9-66q2

References

  • TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
  • TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
  • TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
  • TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
  • TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
See all 15278 →

Sources