CVE-2022-50583
BaseFortify
Publication date: 2025-12-08
Last updated on: 2025-12-08
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in the Linux kernel relates to how the md/raid0 and raid10 drivers handle discard sectors for the request queue. Instead of using disk_stack_limits to determine the proper maximum discard sectors, the drivers incorrectly set this value themselves. When all member disks are rotational devices, raid0/raid10 incorrectly sets max_discard_sectors, causing the RAID device to export an incorrect value even though the member devices are not SSDs or NVMe. This results in warning messages during operations like mkfs.xfs.
How can this vulnerability impact me? :
The impact of this vulnerability is primarily related to incorrect reporting of discard sector limits in RAID0 and RAID10 configurations with rotational disks. This can cause warning messages in the kernel during filesystem operations such as mkfs.xfs. While it does not indicate data corruption or security breach directly, it may affect system stability or performance related to discard operations.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by checking for warning messages related to __blkdev_issue_discard in the system logs, especially when running commands like mkfs.xfs. You can use the command 'dmesg | grep __blkdev_issue_discard' to look for these warnings in the kernel log.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version where this vulnerability is resolved, as it is a kernel-level bug related to RAID0/RAID10 discard sector handling. Until then, monitoring for the warning messages and avoiding operations that trigger discard requests on affected RAID configurations may reduce exposure.