CVE-2022-50583
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50583 is a bug in the Linux kernel's md/raid0 and raid10 subsystems where max_discard_sectors is incorrectly set for request queues on rotational (non-SSD/NVMe) member disks. Instead of using disk_stack_limits to derive a proper value, the drivers set the value directly, causing incorrect discard sector reporting. This results in kernel warning messages (WARN_ON) triggered in __blkdev_issue_discard during operations such as mkfs.xfs. The vulnerability was published on December 8, 2025, and is estimated as Medium severity with an EPSS score of 0.000170 (Feedly, CIRCL).

Technical details

The root cause is improper handling of discard sector limits in the Linux kernel's RAID stack drivers (md/raid0 and raid10), classified under incorrect calculation or use of block device limits (related to CWE-682: Incorrect Calculation). When all member disks are rotational devices, the RAID layer incorrectly exports a non-zero max_discard_sectors value to the request queue, which should only be set for devices that support discard (e.g., SSDs/NVMe). The fix requires using disk_stack_limits to properly inherit and propagate discard capabilities from member devices rather than setting the value directly. The bug manifests as a kernel WARNING in block/blk-lib.c:50 (__blkdev_issue_discard) when user-space tools like mkfs.xfs attempt discard operations (Feedly).

Impact

The primary impact is a kernel warning (WARN_ON) that can be triggered during filesystem creation or discard operations on RAID0/RAID10 arrays composed of rotational disks. This does not result in arbitrary code execution or privilege escalation, but can cause unexpected kernel log noise, potential system instability, or incorrect block device behavior when discard operations are issued to non-supporting hardware. In production environments, this could lead to degraded reliability or unexpected I/O errors during storage provisioning (Feedly).

Exploitability

There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution associated with CVE-2022-50583. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is very low at 0.000170, indicating a minimal probability of exploitation in the near term. The issue is a logic/correctness bug rather than a security vulnerability in the traditional sense, and exploitation would require local access to trigger discard operations on an affected RAID array (Feedly, Tenable).

Mitigation and workarounds

Apply the upstream Linux kernel patches that correct the discard sector limit handling in md/raid0 and raid10 by using disk_stack_limits instead of directly setting max_discard_sectors. The relevant fixes are available in the Linux stable kernel tree (commits 8e1a2279ca2b, 27e5d61a8e69, and e80bef070699). Users should update to a patched kernel version provided by their Linux distribution. As a workaround, disabling discard/TRIM operations on RAID0/RAID10 arrays composed of rotational disks can prevent the warning from being triggered (Feedly, Tenable).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management