Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-50350

CRITICAL 9.8EPSS 28%

scsi: target: iscsi: Fix a race condition between login_work and the login thread

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= d381a8010a052813a88e20e089be4a58aad8b40a, < 1533b8b3058db618409f41554ebe768c2e3acfae; >= d381a8010a052813a88e20e089be4a58aad8b40a, < 3ecdca49ca49d4770639d81503c873b6d25887c4; >= d381a8010a052813a88e20e089be4a58aad8b40a, < fec1b2fa62c162d03f5dcd7b03e3c89d3116d49f
  • Anyone running Linux 3.12

Vulnerability facts

Affected
Linux >= d381a8010a052813a88e20e089be4a58aad8b40a, < 1533b8b3058db618409f41554ebe768c2e3acfae; >= d381a8010a052813a88e20e089be4a58aad8b40a, < 3ecdca49ca49d4770639d81503c873b6d25887c4; >= d381a8010a052813a88e20e089be4a58aad8b40a, < fec1b2fa62c162d03f5dcd7b03e3c89d3116d49f; Linux 3.12
Fixed in
Linux 1533b8b3058db618409f41554ebe768c2e3acfae, Linux 3ecdca49ca49d4770639d81503c873b6d25887c4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.42% chance of exploitation in 30 days (percentile 28, 2026-11-26)
CWE
CWE-362
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Fix a race condition between login_work and the login thread In case a malicious initiator sends some random data immediately after a login PDU; the iscsi_target_sk_data_ready() callback will schedule the login_work and, at the same time, the negotiation may end without clearing the LOGIN_FLAGS_INITIAL_PDU flag (because no additional PDU exchanges are required to complete the login). The login has been completed but the login_work function will find the LOGIN_FLAGS_INITIAL_PDU flag set and will never stop from rescheduling itself; at this point, if the initiator drops the connection, the iscsit_conn structure will be freed, login_work will dereference a released socket structure and the kernel crashes. BUG: kernel NULL pointer dereference, address: 0000000000000230 PF: supervisor write access in kernel mode PF: error_code(0x0002) - not-present page Workqueue: events iscsi_target_do_login_rx [iscsi_target_mod] RIP: 0010:_raw_read_lock_bh+0x15/0x30 Call trace: iscsi_target_do_login_rx+0x75/0x3f0 [iscsi_target_mod] process_one_work+0x1e8/0x3c0 Fix this bug by forcing login_work to stop after the login has been completed and the socket callbacks have been restored. Add a comment to clearify the return values of iscsi_target_do_login()

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= d381a8010a052813a88e20e089be4a58aad8b40a, < 1533b8b3058db618409f41554ebe768c2e3acfae; >= d381a8010a052813a88e20e089be4a58aad8b40a, < 3ecdca49ca49d4770639d81503c873b6d25887c4; >= d381a8010a052813a88e20e089be4a58aad8b40a, < fec1b2fa62c162d03f5dcd7b03e3c89d3116d49f—cvelist
Linux3.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-50350. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50350.md
Affected: Linux >= d381a8010a052813a88e20e089be4a58aad8b40a, < 1533b8b3058db618409f41554ebe768c2e3acfae; >= d381a8010a052813a88e20e089be4a58aad8b40a, < 3ecdca49ca49d4770639d81503c873b6d25887c4; >= d381a8010a052813a88e20e089be4a58aad8b40a, < fec1b2fa62c162d03f5dcd7b03e3c89d3116d49f; Linux 3.12
Fixed in: Linux 1533b8b3058db618409f41554ebe768c2e3acfae, Linux 3ecdca49ca49d4770639d81503c873b6d25887c4

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.

References

FAQ

Is CVE-2022-50350 being exploited?

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

How serious is CVE-2022-50350?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2022-50350?

Linux >= d381a8010a052813a88e20e089be4a58aad8b40a, < 1533b8b3058db618409f41554ebe768c2e3acfae; >= d381a8010a052813a88e20e089be4a58aad8b40a, < 3ecdca49ca49d4770639d81503c873b6d25887c4; >= d381a8010a052813a88e20e089be4a58aad8b40a, < fec1b2fa62c162d03f5dcd7b03e3c89d3116d49f; Linux 3.12.

Is there a fix for CVE-2022-50350?

Yes. Fixed in Linux 1533b8b3058db618409f41554ebe768c2e3acfae, Linux 3ecdca49ca49d4770639d81503c873b6d25887c4. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2022-50350?

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.

Sponsors