{"id":"CVE-2026-99827","aliases":["CVE-2026-99827"],"related":[],"kind":"vulnerability","state":"published","title":"iov_iter: fix NULL deref in iov_iter_alignment()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:17:24.492Z","modified":"2026-12-01T06:17:52.557Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"040a1e7e0e2f01851fec1dd2d96906f8636a9f75","fixed":"325b62c95822975a65fe5d0c70e106a68f1ee700","status":"affected"},{"type":"git","introduced":"111a12b422a8cfa93deabaef26fec48237163214","fixed":"5c38de5f536e286264be35a71c2290f5bf947bab","status":"affected"},{"type":"git","introduced":"111a12b422a8cfa93deabaef26fec48237163214","fixed":"a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2","status":"affected"},{"type":"git","version":"40170fc1a79c1b2e68f09ae6aac687b7305ae6f4","status":"affected"},{"type":"semver","introduced":"6.18.22","fixed":"6.18.63","status":"affected"},{"type":"semver","introduced":"6.19.12","fixed":"6.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99827","url":"https://www.cve.org/CVERecord?id=CVE-2026-99827","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:38.611Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99827","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99827","licence":"Public domain","modified":"2026-12-01T06:17:52.557Z"}],"updatedAt":"2026-12-01T06:32:24.352Z","epss":{"score":0.00198,"percentile":0.10006,"date":"2026-12-01T12:00:22.000Z"}}