{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99827","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.436Z","datePublished":"2026-11-30T13:17:24.492Z","dateUpdated":"2026-12-01T05:43:38.611Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:38.611Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niov_iter: fix NULL deref in iov_iter_alignment()\n\nSince commit 111a12b422a8 (\"io_uring/rsrc: reject zero-length fixed\nbuffer import\") io_import_fixed() hands out an empty ITER_BVEC for a\nzero-length request. Its count is 0 and its bvec array is NULL.\n\niov_iter_alignment() only checks the count for ITER_UBUF. For ITER_BVEC\nit calls iov_iter_alignment_bvec() and the do-while loop in there reads\nbvec->bv_len before it looks at the count. So it dereferences NULL.\n\nbtrfs checks the alignment of a direct read with iov_iter_alignment()\nbefore it looks at the count and f2fs does the same. So any user that\ncan open a file on btrfs can oops the kernel with a single zero-length\nIORING_OP_READ_FIXED on an O_DIRECT file descriptor. With IOSQE_ASYNC\nthe oops happens in an io-wq worker. The dead worker stays on the worker\nlist and when the task that submitted the request exits io-wq writes to\nthe freed task_struct of the worker. That's just fallout from the oops\nthough.\n\nEmpty iterators with a NULL array aren't unusual. afs, tls and tipc\ncreate them as well. So leave io_uring alone and make\niov_iter_alignment() return 0 for an empty iterator of any type."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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().\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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().\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["lib/iov_iter.c"],"versions":[{"version":"040a1e7e0e2f01851fec1dd2d96906f8636a9f75","lessThan":"325b62c95822975a65fe5d0c70e106a68f1ee700","status":"affected","versionType":"git"},{"version":"111a12b422a8cfa93deabaef26fec48237163214","lessThan":"5c38de5f536e286264be35a71c2290f5bf947bab","status":"affected","versionType":"git"},{"version":"111a12b422a8cfa93deabaef26fec48237163214","lessThan":"a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2","status":"affected","versionType":"git"},{"version":"40170fc1a79c1b2e68f09ae6aac687b7305ae6f4","status":"affected","versionType":"git"},{"version":"6.18.22","lessThan":"6.18.63","status":"affected","versionType":"semver"},{"version":"6.19.12","lessThan":"6.20","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["lib/iov_iter.c"],"versions":[{"version":"7.0","status":"affected"},{"version":"0","lessThan":"7.0","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.22","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19.12"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700"},{"url":"https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab"},{"url":"https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2"}],"title":"iov_iter: fix NULL deref in iov_iter_alignment()","x_generator":{"engine":"bippy-1.2.0"}}}}