Skip to main content
Menu
CVEs

Linux kernel crash via NULL pointer dereference in iov_iter_alignment

Affects Linux kernels 6.18.22 to before 6.18.63 and 6.19.12 to before 6.20 using io_uring zero-length fixed-buffer reads with btrfs or f2fs direct I/O. Fixed in 6.18.63 and 6.20. No vendor severity rating is given.

CVE-2026-99827EUVD-2026-138459GHSA-C37X-QPH3-VJJ5Published November 30, 2026, updated

7.8HighCNA
Exploited
No known exploitation
Fix
Fixed in 6.18.63, 6.20
Who is exposed
Specific setups only

Summary

The Linux kernel's iov_iter code, specifically the iov_iter_alignment() function, dereferences a NULL pointer. A user who can open a file on a btrfs filesystem can crash the kernel with a single zero-length IORING_OP_READ_FIXED request on an O_DIRECT file descriptor.

Written by a model

Original description

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

iov_iter: fix NULL deref in iov_iter_alignment()

Since commit 111a12b422a8 ("io_uring/rsrc: reject zero-length fixed buffer import") io_import_fixed() hands out an empty ITER_BVEC for a zero-length request. Its count is 0 and its bvec array is NULL.

iov_iter_alignment() only checks the count for ITER_UBUF. For ITER_BVEC it calls iov_iter_alignment_bvec() and the do-while loop in there reads bvec->bv_len before it looks at the count. So it dereferences NULL.

btrfs checks the alignment of a direct read with iov_iter_alignment() before it looks at the count and f2fs does the same. So any user that can open a file on btrfs can oops the kernel with a single zero-length IORING_OP_READ_FIXED on an O_DIRECT file descriptor. With IOSQE_ASYNC the oops happens in an io-wq worker. The dead worker stays on the worker list and when the task that submitted the request exits io-wq writes to the freed task_struct of the worker. That's just fallout from the oops though.

Empty iterators with a NULL array aren't unusual. afs, tls and tipc create them as well. So leave io_uring alone and make iov_iter_alignment() return 0 for an empty iterator of any type.

Who should check

Anyone running Linux kernels with io_uring and btrfs or f2fs, such as hosts with btrfs /home on Fedora or openSUSE.

“The attacker opens a file it owns on btrfs”

cve.org

What to do

  1. Check whether your setup matches what the bug needs.

    Linux kernel that includes commit 111a12b422a8 (zero-length fixed buffer import rejected in io_uring) io_uring zero-length IORING_OP_READ_FIXED import producing an empty ITER_BVEC Direct I/O read on a file on btrfs or f2fs, which calls iov_iter_alignment() before checking the count
  2. Upgrade to a fixed version: 6.18.63, 6.20.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-99827 (iov_iter: fix NULL deref in iov_iter_alignment()), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-99827 (entry last updated 2026-12-01):
Affected:
- Linux Linux: from 6.18.22, fixed in 6.18.63; from 6.19.12, fixed in 6.20
- Linux Linux: versions 7.0
Fixed versions: 6.18.63, 6.20.
Vendor patches: 325b62c95822975a65fe5d0c70e106a68f1ee700, 5c38de5f536e286264be35a71c2290f5bf947bab, a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- Linux kernel that includes commit 111a12b422a8 (zero-length fixed buffer import rejected in io_uring) (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700)
- io_uring zero-length IORING_OP_READ_FIXED import producing an empty ITER_BVEC (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700)
- Direct I/O read on a file on btrfs or f2fs, which calls iov_iter_alignment() before checking the count (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-99827 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-99827 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700
- https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab
- https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-99827
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-99827"}.

Affected versions

cve.now Index

33Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 83 if added to CISA KEV
  • Would score about 78 if CISA's SSVC rates exploitation active
  • Would score about 43 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 5

Questions about CVE-2026-99827

Is CVE-2026-99827 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

A NULL pointer dereference in iov_iter_alignment() can crash the kernel with an oops. It happens when a zero-length io_uring fixed-buffer read produces an empty iterator and a direct read on btrfs or f2fs calls the function before checking the count. The advisory also notes that cross-cache reclaim of the task_struct slab could turn the crash into a write and control-flow primitive.

Source: git.kernel.org, cve.org, git.kernel.org

Which versions are affected by CVE-2026-99827?

Linux: from 6.18.22 before 6.18.63; from 6.19.12 before 6.20. Linux: version 7.0.

Source: cve.now feed data

Am I affected, and how do I check?

Affected kernels are Linux 6.18.22 up to 6.18.63 and 6.19.12 up to 6.20, from the kernel that includes commit 111a12b422a8 onward. The setup involves io_uring zero-length IORING_OP_READ_FIXED reads and direct I/O reads on files on btrfs or f2fs. To check a system, run uname -r for the kernel version and identify the filesystem holding the files in question.

Source: git.kernel.org, cve.org, git.kernel.org

How do I fix CVE-2026-99827?

Upgrade to Linux 6.18.63 or 6.20, or apply the fix patches 325b62c95822975a65fe5d0c70e106a68f1ee700, 5c38de5f536e286264be35a71c2290f5bf947bab, and a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2. The fix makes iov_iter_alignment() return 0 for an empty iterator of any type.

Source: git.kernel.org, cve.org, git.kernel.org

No corrections so far. Something wrong on this page? Report an error.