{"api_version":"1","generated_at":"2026-12-01T06:50:19+00:00","cve":"CVE-2026-99827","urls":{"html":"https://cve.report/CVE-2026-99827","api":"https://cve.report/api/cve/CVE-2026-99827.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99827","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99827"},"summary":{"title":"iov_iter: fix NULL deref in iov_iter_alignment()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:15","updated_at":"2026-12-01 06:17:52"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2","name":"https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab","name":"https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700","name":"https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99827","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99827","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 040a1e7e0e2f01851fec1dd2d96906f8636a9f75 325b62c95822975a65fe5d0c70e106a68f1ee700 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 111a12b422a8cfa93deabaef26fec48237163214 5c38de5f536e286264be35a71c2290f5bf947bab git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 111a12b422a8cfa93deabaef26fec48237163214 a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 40170fc1a79c1b2e68f09ae6aac687b7305ae6f4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.22 6.18.63 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19.12 6.20 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["lib/iov_iter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"325b62c95822975a65fe5d0c70e106a68f1ee700","status":"affected","version":"040a1e7e0e2f01851fec1dd2d96906f8636a9f75","versionType":"git"},{"lessThan":"5c38de5f536e286264be35a71c2290f5bf947bab","status":"affected","version":"111a12b422a8cfa93deabaef26fec48237163214","versionType":"git"},{"lessThan":"a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2","status":"affected","version":"111a12b422a8cfa93deabaef26fec48237163214","versionType":"git"},{"status":"affected","version":"40170fc1a79c1b2e68f09ae6aac687b7305ae6f4","versionType":"git"},{"lessThan":"6.18.63","status":"affected","version":"6.18.22","versionType":"semver"},{"lessThan":"6.20","status":"affected","version":"6.19.12","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["lib/iov_iter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.0"},{"lessThan":"7.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.18.22","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"7.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:43:38.611Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99827","datePublished":"2026-11-30T13:17:24.492Z","dateReserved":"2026-09-25T10:25:14.436Z","dateUpdated":"2026-12-01T05:43:38.611Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:15","lastModifiedDate":"2026-12-01 06:17:52","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99827","Ordinal":"1","Title":"iov_iter: fix NULL deref in iov_iter_alignment()","CVE":"CVE-2026-99827","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99827","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"iov_iter: fix NULL deref in iov_iter_alignment()"}]}}}