# CVE-2022-50583: md/raid0, raid10: Don't set discard sectors for request queue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-08T01:12:18.853Z
- **Modified:** 2026-06-17T05:23:50.120Z

## Who should check

- Anyone running Linux \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< e80bef070699d2e791badefccb1ddabd6998d468; \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< 27e5d61a8e6919b5c0c6f473703ffea2acba862a; \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< 8e1a2279ca2b0485cc379a153d02a9793f74a48f
- Anyone running Linux 5.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

md/raid0, raid10: Don't set discard sectors for request queue

It should use disk\_stack\_limits to get a proper max\_discard\_sectors
rather than setting a value by stack drivers.

And there is a bug. If all member disks are rotational devices,
raid0/raid10 set max\_discard\_sectors. So the member devices are
not ssd/nvme, but raid0/raid10 export the wrong value. It reports
warning messages in function \_\_blkdev\_issue\_discard when mkfs.xfs
like this:

\[ 4616.022599\] ------------\[ cut here \]------------
\[ 4616.027779\] WARNING: CPU: 4 PID: 99634 at block/blk-lib.c:50 \_\_blkdev\_issue\_discard+0x16a/0x1a0
\[ 4616.140663\] RIP: 0010:\_\_blkdev\_issue\_discard+0x16a/0x1a0
\[ 4616.146601\] Code: 24 4c 89 20 31 c0 e9 fe fe ff ff c1 e8 09 8d 48 ff 4c 89 f0 4c 09 e8 48 85 c1 0f 84 55 ff ff ff b8 ea ff ff ff e9 df fe ff ff \<0f\> 0b 48 8d 74 24 08 e8 ea d6 00 00 48 c7 c6 20 1e 89 ab 48 c7 c7
\[ 4616.167567\] RSP: 0018:ffffaab88cbffca8 EFLAGS: 00010246
\[ 4616.173406\] RAX: ffff9ba1f9e44678 RBX: 0000000000000000 RCX: ffff9ba1c9792080
\[ 4616.181376\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff9ba1c9792080
\[ 4616.189345\] RBP: 0000000000000cc0 R08: ffffaab88cbffd10 R09: 0000000000000000
\[ 4616.197317\] R10: 0000000000000012 R11: 0000000000000000 R12: 0000000000000000
\[ 4616.205288\] R13: 0000000000400000 R14: 0000000000000cc0 R15: ffff9ba1c9792080
\[ 4616.213259\] FS:  00007f9a5534e980(0000) GS:ffff9ba1b7c80000(0000) knlGS:0000000000000000
\[ 4616.222298\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 4616.228719\] CR2: 000055a390a4c518 CR3: 0000000123e40006 CR4: 00000000001706e0
\[ 4616.236689\] Call Trace:
\[ 4616.239428\]  blkdev\_issue\_discard+0x52/0xb0
\[ 4616.244108\]  blkdev\_common\_ioctl+0x43c/0xa00
\[ 4616.248883\]  blkdev\_ioctl+0x116/0x280
\[ 4616.252977\]  \_\_x64\_sys\_ioctl+0x8a/0xc0
\[ 4616.257163\]  do\_syscall\_64+0x5c/0x90
\[ 4616.261164\]  ? handle\_mm\_fault+0xc5/0x2a0
\[ 4616.265652\]  ? do\_user\_addr\_fault+0x1d8/0x690
\[ 4616.270527\]  ? do\_syscall\_64+0x69/0x90
\[ 4616.274717\]  ? exc\_page\_fault+0x62/0x150
\[ 4616.279097\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[ 4616.284748\] RIP: 0033:0x7f9a55398c6b

## Affected and fixed versions

- Linux: \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< e80bef070699d2e791badefccb1ddabd6998d468; \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< 27e5d61a8e6919b5c0c6f473703ffea2acba862a; \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< 8e1a2279ca2b0485cc379a153d02a9793f74a48f (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 8e1a2279ca2b0485cc379a153d02a9793f74a48f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50583.md
Affected: Linux >= 70200574cc229f6ba038259e8142af2aa09e6976, < e80bef070699d2e791badefccb1ddabd6998d468; >= 70200574cc229f6ba038259e8142af2aa09e6976, < 27e5d61a8e6919b5c0c6f473703ffea2acba862a; >= 70200574cc229f6ba038259e8142af2aa09e6976, < 8e1a2279ca2b0485cc379a153d02a9793f74a48f; Linux 5.19
Fixed in: Linux 27e5d61a8e6919b5c0c6f473703ffea2acba862a, Linux 8e1a2279ca2b0485cc379a153d02a9793f74a48f

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.
```

## FAQ

### Is CVE-2022-50583 being exploited?

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

### How serious is CVE-2022-50583?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50583?

Linux \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< e80bef070699d2e791badefccb1ddabd6998d468; \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< 27e5d61a8e6919b5c0c6f473703ffea2acba862a; \>= 70200574cc229f6ba038259e8142af2aa09e6976, \< 8e1a2279ca2b0485cc379a153d02a9793f74a48f; Linux 5.19.

### Is there a fix for CVE-2022-50583?

Yes. Fixed in Linux 27e5d61a8e6919b5c0c6f473703ffea2acba862a, Linux 8e1a2279ca2b0485cc379a153d02a9793f74a48f. Upgrade Linux to 8e1a2279ca2b0485cc379a153d02a9793f74a48f or later.

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

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.

## References

- other: <https://git.kernel.org/stable/c/e80bef070699d2e791badefccb1ddabd6998d468>
- other: <https://git.kernel.org/stable/c/27e5d61a8e6919b5c0c6f473703ffea2acba862a>
- other: <https://git.kernel.org/stable/c/8e1a2279ca2b0485cc379a153d02a9793f74a48f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50583>

HTML: <https://flawdb.com/CVE-2022-50583> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50583>
