Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

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

CVSS 3.1 7.8 HIGHCheck source for fixed versionsKEV status unknown

Historical advisory recorded 23 Oct 2026 15:48:27 UTC. Read the latest advisory.

cve-program · CVE-2022-50459

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2022-50459

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/scsi/iscsi_tcp.c",
                        "drivers/scsi/iscsi_tcp.h"
                    ],
                    "versions": [
                        {
                            "version": "bcf3a2953d36bbfb9bd44ccb3db0897d935cc485",
                            "lessThan": "884a788f065578bb640382279a83d1df433b13e6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bcf3a2953d36bbfb9bd44ccb3db0897d935cc485",
                            "lessThan": "a26b0658751bb0a3b28386fca715333b104d32a2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bcf3a2953d36bbfb9bd44ccb3db0897d935cc485",
                            "lessThan": "897dbbc57d71e8a34ec1af8e573a142de457da38",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bcf3a2953d36bbfb9bd44ccb3db0897d935cc485",
                            "lessThan": "0a0b861fce2657ba08ec356a74346b37ca4b2008",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bcf3a2953d36bbfb9bd44ccb3db0897d935cc485",
                            "lessThan": "57569c37f0add1b6489e1a1563c71519daf732cf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7d29e950766327f658cb92722b9445ac3b3ae023",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.8.14",
                            "lessThan": "5.9",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/scsi/iscsi_tcp.c",
                        "drivers/scsi/iscsi_tcp.h"
                    ],
                    "versions": [
                        {
                            "version": "5.9",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.9",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.150",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.75",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.17",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.3",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 05:15 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current