CVE-2026-80790

nvmet-fc: fix invalid free in LS IOD error path

State
Published
Severity
Not scored
Published
Sep 4, 2026
Updated
Oct 19, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before b189c6e408896ccc23d2e76d7738847cdebf1532Affected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before 449e9c4f8db84ad9d9bb288029b230bcf590faa2Affected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before 1a8f007faefe8c226ec65896589f8d59b0a8d5a5Affected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before d094582cce9c08516d714e7436a8f3b9211dda90Affected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before 371fb1bf902adaa59be32bd7e904a5317e604fd0Affected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before 8bce9cd08aae4283badf8ddc11fbb6f57b75a81eAffected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before bb9489f0dce58da730d3479588d6710d7a2c1b45Affected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before 94334ea92f4d7535f66f86e33681efa94827eddcAffected
  • c53432030d86429dc9fe5adc3d68cb9d1343b0b2 to before ba98d6796d12258e837ece065d2ecb59d76ce4ffAffected
LinuxLinux
  • 4.10Affected
  • before 4.10Not affected
  • 5.10.267 through 5.10.*Not affected
  • 5.15.218 through 5.15.*Not affected
  • 6.1.185 through 6.1.*Not affected
  • 6.6.154 through 6.6.*Not affected
  • 6.12.106 through 6.12.*Not affected
  • 6.18.47 through 6.18.*Not affected
  • 7.1.11 through 7.1.*Not affected
  • 7.2.1 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.