← Back to CVE Explorer

CVE-2026-80790

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: fix invalid free in LS IOD error path nvmet_fc_alloc_ls_iodlist() advances iod while initializing the LS IOD array. If an rqstbuf allocation or response buffer DMA mapping fails, the unwind loop decrements iod past the start of the array. The final kfree(iod) therefore frees an address before the allocated object. This can be reproduced with nvme-fcloop and failslab by setting fail-nth to 6 before creating a target port. KASAN reports: BUG: KASAN: invalid-free in nvmet_fc_register_targetport Free of addr ffff88816cf8ff48 by task nvmet_fail_nth/9552 Free the original allocation base stored in tgtport->iod instead. With this fix applied, the same sysfs write with fail-nth=6 returns -ENOMEM without any KASAN report.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2026-09-04 16:18:05.167000
Last modified
2026-10-19 09:17:13.083000
View original CVE JSON
{
  "id": "CVE-2026-80790",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2026-09-04T16:18:05.167",
  "lastModified": "2026-10-19T09:17:13.083",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-fc: fix invalid free in LS IOD error path\n\nnvmet_fc_alloc_ls_iodlist() advances iod while initializing the LS IOD\narray. If an rqstbuf allocation or response buffer DMA mapping fails,\nthe unwind loop decrements iod past the start of the array. The final\nkfree(iod) therefore frees an address before the allocated object.\n\nThis can be reproduced with nvme-fcloop and failslab by setting\nfail-nth to 6 before creating a target port. KASAN reports:\n\n  BUG: KASAN: invalid-free in nvmet_fc_register_targetport\n  Free of addr ffff88816cf8ff48 by task nvmet_fail_nth/9552\n\nFree the original allocation base stored in tgtport->iod instead. With\nthis fix applied, the same sysfs write with fail-nth=6 returns -ENOMEM\nwithout any KASAN report."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/nvme/target/fc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "b189c6e408896ccc23d2e76d7738847cdebf1532",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "449e9c4f8db84ad9d9bb288029b230bcf590faa2",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "1a8f007faefe8c226ec65896589f8d59b0a8d5a5",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "d094582cce9c08516d714e7436a8f3b9211dda90",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "371fb1bf902adaa59be32bd7e904a5317e604fd0",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "8bce9cd08aae4283badf8ddc11fbb6f57b75a81e",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "bb9489f0dce58da730d3479588d6710d7a2c1b45",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "94334ea92f4d7535f66f86e33681efa94827eddc",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "c53432030d86429dc9fe5adc3d68cb9d1343b0b2",
              "lessThan": "ba98d6796d12258e837ece065d2ecb59d76ce4ff",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/nvme/target/fc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "4.10",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "4.10",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.267",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.218",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.185",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.154",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.106",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18.47",
              "lessThanOrEqual": "6.18.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.1.11",
              "lessThanOrEqual": "7.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "7.2.1",
              "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/1a8f007faefe8c226ec65896589f8d59b0a8d5a5",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/371fb1bf902adaa59be32bd7e904a5317e604fd0",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/449e9c4f8db84ad9d9bb288029b230bcf590faa2",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/8bce9cd08aae4283badf8ddc11fbb6f57b75a81e",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/94334ea92f4d7535f66f86e33681efa94827eddc",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/b189c6e408896ccc23d2e76d7738847cdebf1532",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/ba98d6796d12258e837ece065d2ecb59d76ce4ff",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/bb9489f0dce58da730d3479588d6710d7a2c1b45",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/d094582cce9c08516d714e7436a8f3b9211dda90",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}