← Back to CVE Explorer

CVE-2026-98821

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: block: reject polled dio with user integrity metadata IOCB_HAS_METADATA leaves iocb->private as a uio_meta, while iocb_bio_iopoll() expects a bio. Since 2729a60bbfb9, metadata I/O always uses __blkdev_direct_IO(), which never publishes the bio for polling, so IOPOLL calls bio_poll() on the uio_meta. Reproducer: io_uring IOPOLL plus a PI attribute on an integrity device (scsi_debug dif=1 dix=1). KASAN reports: Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004 KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] RIP: 0010:bio_poll+0x9d/0x4b0 Call Trace: iocb_bio_iopoll+0x5b/0x80 io_uring_classic_poll+0xf3/0x140 io_do_iopoll+0x4e3/0xc00 io_iopoll_check+0x275/0x560 __do_sys_io_uring_enter+0x2e5/0x720 Return -EOPNOTSUPP when HIPRI is combined with user metadata.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-10-18 16:17:36.337000
Last modified
2026-10-19 10:19:46.173000
View original CVE JSON
{
  "id": "CVE-2026-98821",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-10-18T16:17:36.337",
  "lastModified": "2026-10-19T10:19:46.173",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblock: reject polled dio with user integrity metadata\n\nIOCB_HAS_METADATA leaves iocb->private as a uio_meta, while\niocb_bio_iopoll() expects a bio. Since 2729a60bbfb9, metadata I/O\nalways uses __blkdev_direct_IO(), which never publishes the bio for\npolling, so IOPOLL calls bio_poll() on the uio_meta.\n\nReproducer: io_uring IOPOLL plus a PI attribute on an integrity device\n(scsi_debug dif=1 dix=1). KASAN reports:\n\n  Oops: general protection fault, probably for non-canonical\n  address 0xdffffc0000000004\n  KASAN: null-ptr-deref in range\n  [0x0000000000000020-0x0000000000000027]\n  RIP: 0010:bio_poll+0x9d/0x4b0\n  Call Trace:\n   iocb_bio_iopoll+0x5b/0x80\n   io_uring_classic_poll+0xf3/0x140\n   io_do_iopoll+0x4e3/0xc00\n   io_iopoll_check+0x275/0x560\n   __do_sys_io_uring_enter+0x2e5/0x720\n\nReturn -EOPNOTSUPP when HIPRI is combined with user metadata."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "block/fops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "2729a60bbfb9215997f25372ebe9b7964f038296",
              "lessThan": "c97ef13ad96be0e08af38dfa2ed40cded0b53e1b",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2729a60bbfb9215997f25372ebe9b7964f038296",
              "lessThan": "dd33c03cefccdfcb223e9e6262643d64f8c1ae20",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "2729a60bbfb9215997f25372ebe9b7964f038296",
              "lessThan": "2a42e6fe1293f2e2d579c9fe5bbab056dd8b880e",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "17ecefc9fdd8c554e0d03e5a990daef19f930add",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "6.16.8",
              "lessThan": "6.17",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "block/fops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "6.17",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "6.17",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.56",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.10",
              "lessThanOrEqual": "7.2.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.3",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/2a42e6fe1293f2e2d579c9fe5bbab056dd8b880e",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c97ef13ad96be0e08af38dfa2ed40cded0b53e1b",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/dd33c03cefccdfcb223e9e6262643d64f8c1ae20",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}