CVE-2026-99827 (GCVE-0-2026-99827)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:17 – Updated: 2026-12-01 05:43
VLAI
Title
iov_iter: fix NULL deref in iov_iter_alignment()
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 040a1e7e0e2f01851fec1dd2d96906f8636a9f75 , < 325b62c95822975a65fe5d0c70e106a68f1ee700 (git)
Affected: 111a12b422a8cfa93deabaef26fec48237163214 , < 5c38de5f536e286264be35a71c2290f5bf947bab (git)
Affected: 111a12b422a8cfa93deabaef26fec48237163214 , < a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2 (git)
Affected: 40170fc1a79c1b2e68f09ae6aac687b7305ae6f4 (git)
Affected: 6.18.22 , < 6.18.63 (semver)
Affected: 6.19.12 , < 6.20 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 7.0
Unaffected: 0 , < 7.0 (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "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-\u003ebv_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\u0027s just fallout from the oops\nthough.\n\nEmpty iterators with a NULL array aren\u0027t 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()-\u003ebtrfs_direct_read()-\u003echeck_direct_read()-\u003echeck_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 -\u003eread_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\u0027s 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\u0027s 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-\u003eall_list. io-wq never took a reference on worker-\u003etask, so the dead worker\u0027s 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-\u003esched_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-\u003ebv_len through a NULL pointer and oopses. Inline, the task dies holding ctx-\u003euring_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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99827",
      "date": "2026-12-04",
      "epss": "0.00198",
      "percentile": "0.1003"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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-\u003ebv_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\u0027s just fallout from the oops\nthough.\n\nEmpty iterators with a NULL array aren\u0027t 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."
          }
        ],
        "id": "CVE-2026-99827",
        "lastModified": "2026-12-01T06:17:52.557",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:20:15.400",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/325b62c95822975a65fe5d0c70e106a68f1ee700"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/5c38de5f536e286264be35a71c2290f5bf947bab"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a290a9e5cf5fbba05d6c59b94b36d00f4fc15ef2"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:04:30+00:00",
      "cve": "CVE-2026-99827",
      "id": "CVE-2026-99827",
      "initial_release_date": "2026-11-30T13:17:24.492000+00:00",
      "product_status:known_affected": "78",
      "product_status:known_not_affected": "202",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via NULL pointer dereference in iov_iter_alignment()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99827.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.