# CVE-2026-98725: nvmet-auth: fix out-of-bounds write in nvmet_auth_challenge()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-10-18T15:47:02.735Z
- Modified: 2026-10-30T13:21:21.280Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet-auth: fix out-of-bounds write in nvmet_auth_challenge()

nvmet_auth_challenge() receives its output buffer as a void pointer.
sizeof(*d) therefore evaluates to one with GCC and undercounts the fixed
challenge header by 15 bytes.  A short AUTH_RECEIVE buffer can pass the
check before the challenge is copied past the end of its allocation.

Use the typed challenge pointer when calculating the response size.

  BUG: KASAN: slab-out-of-bounds in nvmet_execute_auth_receive (drivers/nvme/target/fabrics-cmd-auth.c:442 drivers/nvme/target/fabrics-cmd-auth.c:569)
  Write of size 32 by task kworker/1:1H/64
  Workqueue: nvmet_tcp_wq nvmet_tcp_io_work
  Call Trace:
  nvmet_execute_auth_receive (drivers/nvme/target/fabrics-cmd-auth.c:442 drivers/nvme/target/fabrics-cmd-auth.c:569)
  nvmet_tcp_try_recv_pdu (drivers/nvme/target/tcp.c:1119 drivers/nvme/target/tcp.c:1243)
  nvmet_tcp_io_work (drivers/nvme/target/tcp.c:1350 drivers/nvme/target/tcp.c:1382 drivers/nvme/target/tcp.c:1445)
  process_one_work (kernel/workqueue.c:3322)
  worker_thread (kernel/workqueue.c:3405 kernel/workqueue.c:3486)
  kthread (kernel/kthread.c:436)
  ret_from_fork (arch/x86/kernel/process.c:158)
  ret_from_fork_asm (arch/x86/entry/entry_64.S:245)
  The buggy address is located 16 bytes inside of
   allocated 33-byte region [ffff888000554e80, ffff888000554ea1)
  Kernel panic - not syncing: KASAN: panic_on_warn set ...

(As written by CVE List.)

## Affected

- Linux Linux: from db1312dd95488b5e6ff362ff66fcf953a46b1821 before e94ff1771c4cb398749789557f0b6feb871e3486; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before ef4dfad231a787aded76e5b03788ddb18c8aebab; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 9d61131acd742cf97ee64e453383e41b46568513; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 7fd3c363eba4f2aceb4b3f31cd1cf65e0dcbaee4; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before 8a9b4c0eef19c207663c1ee888257307c869ca86; from db1312dd95488b5e6ff362ff66fcf953a46b1821 before fa6778e030bed9841ddcdf96bc7018da9ac03562; 6.0 (not affected: before 6.0; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/e94ff1771c4cb398749789557f0b6feb871e3486>
- <https://git.kernel.org/stable/c/ef4dfad231a787aded76e5b03788ddb18c8aebab>
- <https://git.kernel.org/stable/c/9d61131acd742cf97ee64e453383e41b46568513>
- <https://git.kernel.org/stable/c/7fd3c363eba4f2aceb4b3f31cd1cf65e0dcbaee4>
- <https://git.kernel.org/stable/c/8a9b4c0eef19c207663c1ee888257307c869ca86>
- <https://git.kernel.org/stable/c/fa6778e030bed9841ddcdf96bc7018da9ac03562>

## Sources

- CVE List: [CVE-2026-98725](https://www.cve.org/CVERecord?id=CVE-2026-98725), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-98725](https://nvd.nist.gov/vuln/detail/CVE-2026-98725), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-98725 · Whole record: https://cve.day/CVE-2026-98725.json · Rebuilt by cve.day 2026-11-25T22:59:45.281Z
