# CVE-2026-23244: nvme: fix memory allocation in nvme\_pr\_read\_keys()

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-03-18T10:05:06.534Z
- **Modified:** 2026-11-05T22:18:08.277Z

## Who should check

- Anyone running Linux \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< e42ff5abbd14927553b624c0e06d24df76156fe6; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< 15fb6d627484ee39ed73e202ef4720e1fa5c898e; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< 5a501379a010690ae9ae88bef62a1bae1aca32e6; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< baef52d80093bd686e70b3cb7e0512a40ae76705; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< c3320153769f05fd7fe9d840cb555dd3080ae424
- Anyone running Linux 6.5

## Description

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

nvme: fix memory allocation in nvme\_pr\_read\_keys()

nvme\_pr\_read\_keys() takes num\_keys from userspace and uses it to
calculate the allocation size for rse via struct\_size(). The upper
limit is PR\_KEYS\_MAX (64K).

A malicious or buggy userspace can pass a large num\_keys value that
results in a 4MB allocation attempt at most, causing a warning in
the page allocator when the order exceeds MAX\_PAGE\_ORDER.

To fix this, use kvzalloc() instead of kzalloc().

This bug has the same reasoning and fix with the patch below:
https://lore.kernel.org/linux-block/20251212013510.3576091-1-kartikey406@gmail.com/

Warning log:
WARNING: mm/page\_alloc.c:5216 at \_\_alloc\_frozen\_pages\_noprof+0x5aa/0x2300 mm/page\_alloc.c:5216, CPU\#1: syz-executor117/272
Modules linked in:
CPU: 1 UID: 0 PID: 272 Comm: syz-executor117 Not tainted 6.19.0 \#1 PREEMPT(voluntary)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
RIP: 0010:\_\_alloc\_frozen\_pages\_noprof+0x5aa/0x2300 mm/page\_alloc.c:5216
Code: ff 83 bd a8 fe ff ff 0a 0f 86 69 fb ff ff 0f b6 1d f9 f9 c4 04 80 fb 01 0f 87 3b 76 30 ff 83 e3 01 75 09 c6 05 e4 f9 c4 04 01 \<0f\> 0b 48 c7 85 70 fe ff ff 00 00 00 00 e9 8f fd ff ff 31 c0 e9 0d
RSP: 0018:ffffc90000fcf450 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffff920001f9ea0
RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000040dc0
RBP: ffffc90000fcf648 R08: ffff88800b6c3380 R09: 0000000000000001
R10: ffffc90000fcf840 R11: ffff88807ffad280 R12: 0000000000000000
R13: 0000000000040dc0 R14: 0000000000000001 R15: ffffc90000fcf620
FS:  0000555565db33c0(0000) GS:ffff8880be26c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000000c CR3: 0000000003b72000 CR4: 00000000000006f0
Call Trace:
 \<TASK\>
 alloc\_pages\_mpol+0x236/0x4d0 mm/mempolicy.c:2486
 alloc\_frozen\_pages\_noprof+0x149/0x180 mm/mempolicy.c:2557
 \_\_\_kmalloc\_large\_node+0x10c/0x140 mm/slub.c:5598
 \_\_kmalloc\_large\_node\_noprof+0x25/0xc0 mm/slub.c:5629
 \_\_do\_kmalloc\_node mm/slub.c:5645 \[inline\]
 \_\_kmalloc\_noprof+0x483/0x6f0 mm/slub.c:5669
 kmalloc\_noprof include/linux/slab.h:961 \[inline\]
 kzalloc\_noprof include/linux/slab.h:1094 \[inline\]
 nvme\_pr\_read\_keys+0x8f/0x4c0 drivers/nvme/host/pr.c:245
 blkdev\_pr\_read\_keys block/ioctl.c:456 \[inline\]
 blkdev\_common\_ioctl+0x1b71/0x29b0 block/ioctl.c:730
 blkdev\_ioctl+0x299/0x700 block/ioctl.c:786
 vfs\_ioctl fs/ioctl.c:51 \[inline\]
 \_\_do\_sys\_ioctl fs/ioctl.c:597 \[inline\]
 \_\_se\_sys\_ioctl fs/ioctl.c:583 \[inline\]
 \_\_x64\_sys\_ioctl+0x1bf/0x220 fs/ioctl.c:583
 x64\_sys\_call+0x1280/0x21b0 mnt/fuzznvme\_1/fuzznvme/linux-build/v6.19/./arch/x86/include/generated/asm/syscalls\_64.h:17
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0x71/0x330 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
RIP: 0033:0x7fb893d3108d
Code: 28 c3 e8 46 1e 00 00 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffff61f2f38 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffff61f3138 RCX: 00007fb893d3108d
RDX: 0000000020000040 RSI: 00000000c01070ce RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007ffff61f3138
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffff61f3128 R14: 00007fb893dae530 R15: 0000000000000001
 \</TASK\>

## Affected and fixed versions

- Linux: \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< e42ff5abbd14927553b624c0e06d24df76156fe6; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< 15fb6d627484ee39ed73e202ef4720e1fa5c898e; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< 5a501379a010690ae9ae88bef62a1bae1aca32e6; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< baef52d80093bd686e70b3cb7e0512a40ae76705; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< c3320153769f05fd7fe9d840cb555dd3080ae424 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23244.md
Affected: Linux >= 5fd96a4e15de8442915a912233d800c56f49001d, < e42ff5abbd14927553b624c0e06d24df76156fe6; >= 5fd96a4e15de8442915a912233d800c56f49001d, < 15fb6d627484ee39ed73e202ef4720e1fa5c898e; >= 5fd96a4e15de8442915a912233d800c56f49001d, < 5a501379a010690ae9ae88bef62a1bae1aca32e6; >= 5fd96a4e15de8442915a912…
Fixed in: Linux 15fb6d627484ee39ed73e202ef4720e1fa5c898e, Linux 5a501379a010690ae9ae88bef62a1bae1aca32e6

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-2026-23244 being exploited?

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

### How serious is CVE-2026-23244?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23244?

Linux \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< e42ff5abbd14927553b624c0e06d24df76156fe6; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< 15fb6d627484ee39ed73e202ef4720e1fa5c898e; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< 5a501379a010690ae9ae88bef62a1bae1aca32e6; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< baef52d80093bd686e70b3cb7e0512a40ae76705; \>= 5fd96a4e15de8442915a912233d800c56f49001d, \< c3320153769f05fd7fe9d840cb555dd3080ae424; Linux 6.5.

### Is there a fix for CVE-2026-23244?

Yes. Fixed in Linux 15fb6d627484ee39ed73e202ef4720e1fa5c898e, Linux 5a501379a010690ae9ae88bef62a1bae1aca32e6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23244?

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

- patch: <https://git.kernel.org/stable/c/e42ff5abbd14927553b624c0e06d24df76156fe6>
- patch: <https://git.kernel.org/stable/c/15fb6d627484ee39ed73e202ef4720e1fa5c898e>
- patch: <https://git.kernel.org/stable/c/5a501379a010690ae9ae88bef62a1bae1aca32e6>
- patch: <https://git.kernel.org/stable/c/baef52d80093bd686e70b3cb7e0512a40ae76705>
- patch: <https://git.kernel.org/stable/c/c3320153769f05fd7fe9d840cb555dd3080ae424>

## 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-2026-23244>

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