Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99827

published high CVSS 3.1 · 7.8

iov_iter: fix NULL deref in iov_iter_alignment()

Published
30 Nov 2026, 13:17:24 UTC
Updated
01 Dec 2026, 05:43:38 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux040a1e7e0e2f01851fec1dd2d96906f8636a9f75 to < 325b62c95822975a65fe5d0c70e106a68f1ee700 · 111a12b422a8cfa93deabaef26fec48237163214 to < 5c38de5f536e286264be35a71c2290f5bf947bab · 111a12b422a8cfa93deabaef26fec48237163214 to < a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2 · 40170fc1a79c1b2e68f09ae6aac687b7305ae6f4 · 6.18.22 to < 6.18.63 · 6.19.12 to < 6.20 · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected; Pending Fix Not stated Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Reached only through the local io_uring_enter() syscall: a zero-length IORING_OP_READ_FIXED makes io_import_fixed() return ITER_BVEC(NULL,0), and btrfs_file_read_iter()->btrfs_direct_read()->check_direct_read()->check_direct_IO() (or f2fs_should_use_dio()) passes it to iov_iter_alignment(). No wire protocol supplies that iterator; the afs/tls/tipc empty iterators the commit mentions never reach iov_iter_alignment(). AC:L - The bug fires every time. __io_read() runs only rw_verify_area(), which accepts a count of 0, before ->read_iter. btrfs and f2fs call iov_iter_alignment() before they look at the count. The attacker opens a file it owns on btrfs (/home on a default Fedora/openSUSE install) with O_DIRECT and submits one SQE. With IOSQE_ASYNC it then chooses when to close the ring or exit, which is what reaches the freed worker. PR:L - Any local user can do this. io_uring_disabled defaults to 0, IORING_REGISTER_BUFFERS needs no capability (only one page of RLIMIT_MEMLOCK), and opening the user's own file with O_DIRECT needs no privilege. ext4_file_read_iter() returns early when the count is 0, so the reach is btrfs and f2fs only. UI:N - No victim action is needed: the attacker submits the request on its own ring against a file it already has open, then closes or exits that ring itself. S:U - The NULL read in iov_iter_alignment_bvec() and the follow-on io-wq use-after-free both stay inside the kernel's own security authority. No VM, IOMMU or sandbox boundary is crossed. C:H - With IOSQE_ASYNC the oops kills an io-wq worker without running io_worker_exit(), so the io_worker stays on acct->all_list. io-wq never took a reference on worker->task, so the dead worker's task_struct is freed. io_wq_worker_cancel() and io_wq_worker_wake() then hand that freed task_struct to __set_notify_signal() and wake_up_process(). Reclaiming the slot feeds attacker data into try_to_wake_up(). I:H - The same path writes into the freed task_struct (TIF_NOTIFY_SIGNAL set_bit, pi_lock). try_to_wake_up() then calls through p->sched_class (select_task_rq/enqueue_task). On default panic_on_oops=0 kernels (CONFIG_PANIC_ON_OOPS defaults to n), cross-cache reclaim of the task_struct slab turns this into a write and control-flow primitive. A:H - iov_iter_alignment_bvec() reads bvec->bv_len through a NULL pointer and oopses. Inline, the task dies holding ctx->uring_lock. Through io-wq, worker_refs never reaches zero, so the exiting submitter hangs in io_uring_cancel_generic()/io_wq_exit_workers(). With panic_on_oops set it is a panic.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 040a1e7e0e2f01851fec1dd2d96906f8636a9f75 to < 325b62c95822975a65fe5d0c70e106a68f1ee700 (affected · git)111a12b422a8cfa93deabaef26fec48237163214 to < 5c38de5f536e286264be35a71c2290f5bf947bab (affected · git)111a12b422a8cfa93deabaef26fec48237163214 to < a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2 (affected · git)40170fc1a79c1b2e68f09ae6aac687b7305ae6f4 (affected · git)6.18.22 to < 6.18.63 (affected · semver)6.19.12 to < 6.20 (affected · semver)Default: unaffected Linux · cna
Linux Linux 7.0 (affected)0 to < 7.0 (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

iov_iter: fix NULL deref in iov_iter_alignment()

Provenance

Schema
5.2
Searchable
yes
Content hash
65b1db10925602e0b84afdcc27f20840a3c391ce8bca3d99cc404d10f8f80687
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected