{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1dce589c38c36ae69614840ee230183f3a7d43c5"
            },
            {
              "fixed": "5f14c59783475b8a6a72c17b3ecbbc862a940209"
            },
            {
              "fixed": "d1ccb62e43be338bc188554dc35e46ca7ba1e33a"
            },
            {
              "fixed": "c6e42762df7d50c9c33d807d6763ff45a375e859"
            },
            {
              "fixed": "30c40077827d8ceeda247579758cada74bc44a7b"
            },
            {
              "fixed": "7e1052d3ab39fb144d46673cc69e5a377c3892d8"
            },
            {
              "fixed": "2c4be2b6248f94e3163ce9634db8112d8b9a93fa"
            },
            {
              "fixed": "ce74798da24b35c68b5c2affc78ab3ccec5e0464"
            },
            {
              "fixed": "3bab8c7e0c6ba187a47163a1f71477213a278c48"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.22"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142858.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata-scsi: abort multi-sector pass-through commands when multi_count is 0\n\nWhen an ATA_12, ATA_16, or ATA_32 pass-through command with a\nmulti-sector PIO command opcode (ATA_CMD_READ_MULTI,\nATA_CMD_WRITE_MULTI, ATA_CMD_READ_MULTI_EXT, ATA_CMD_WRITE_MULTI_EXT, or\nATA_CMD_WRITE_MULTI_FUA_EXT) is submitted via SG_IO on a device where\nmultiple-sector mode is not configured (dev-\u003emulti_count == 0),\nata_scsi_pass_thru() currently logs a warning and still dispatches the\ntaskfile. When the DRQ interrupt fires, ata_pio_sectors() triggers\nWARN_ON_ONCE(qc-\u003edev-\u003emulti_count == 0) and computes\nnsect = min((qc-\u003enbytes - qc-\u003ecurbytes) / qc-\u003esect_size, 0) = 0, failing\nto transfer any sectors:\n\n  ata1.00: invalid multi_count 1 ignored\n  WARNING: drivers/ata/libata-sff.c:666 at ata_pio_sectors+0x27d/0x300\n  Call Trace:\n   \u003cIRQ\u003e\n   ata_sff_hsm_move+0x211/0x22e0\n   __ata_sff_port_intr+0x1c8/0x520\n   ata_bmdma_port_intr+0xa1/0x5b0\n   ata_bmdma_interrupt+0x1f5/0x550\n\nPer ACS-3 section 7.12.7.21, if IDENTIFY DEVICE word 59 bit 8 is cleared\nto zero (multi_count == 0) and a READ MULTIPLE or WRITE MULTIPLE command\nis received without a preceding successful SET MULTIPLE MODE command, the\ndevice returns command aborted (ABRT). Per the SAT specification, an ABRT\nerror translates to the ABORTED COMMAND sense key with NO ADDITIONAL SENSE\nINFORMATION (0x00, 0x00).\n\nFail multi-sector taskfile commands in ata_scsi_pass_thru() with\nata_scsi_set_sense(dev, scmd, ABORTED_COMMAND, 0, 0) when\ndev-\u003emulti_count == 0.",
  "id": "CVE-2026-142858",
  "modified": "2026-12-03T04:45:52.236384282Z",
  "published": "2026-12-03T03:21:01.829Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2c4be2b6248f94e3163ce9634db8112d8b9a93fa"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/30c40077827d8ceeda247579758cada74bc44a7b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3bab8c7e0c6ba187a47163a1f71477213a278c48"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5f14c59783475b8a6a72c17b3ecbbc862a940209"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7e1052d3ab39fb144d46673cc69e5a377c3892d8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c6e42762df7d50c9c33d807d6763ff45a375e859"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ce74798da24b35c68b5c2affc78ab3ccec5e0464"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d1ccb62e43be338bc188554dc35e46ca7ba1e33a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142858.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142858"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ata: libata-scsi: abort multi-sector pass-through commands when multi_count is 0"
}