CVE-2026-74694
JSON

Not scored

net/ncsi: fix heap OOB read in NCSI_CMD_SEND_CMD payload length

Severity
Not scored
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net/ncsi: fix heap OOB read in NCSI_CMD_SEND_CMD payload length ncsi_send_cmd_nl() takes the number of bytes to copy from the attacker-controlled ncsi_pkt_hdr.length field of the in-band packet header, while the source buffer is the NCSI_ATTR_DATA netlink attribute whose readable size is nla_len() - sizeof(ncsi_pkt_hdr). The two length sources are never cross-checked: only nla_len() >= sizeof(struct ncsi_pkt_hdr) is enforced. With hdr->length set larger than the attribute payload (up to 65535 against at most 2032 readable bytes), ncsi_cmd_handler_oem() copies past the end of the netlink attribute buffer with unsafe_memcpy(), leaking up to ~64KB of kernel heap memory into the transmitted NCSI command packet. The destination skb is sized by the declared payload, so the write side does not overflow - this is a pure OOB read / information leak, reachable with CAP_NET_ADMIN on systems with a registered NCSI device (e.g. OpenBMC on Aspeed BMC SoCs, where NET_NCSI=y is standard). Reject commands whose declared payload extends past the end of the data attribute. The issue was found by the autokbug dynamic kernel fuzzer at Tencent Yunding Lab.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before e60afa01d35f8b2671b27ca93309921427144cce, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before 67c72b8ef63d9d9a610546fda30b116638f39745, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before 4489b4a17892750131e4bef4bc1d3d703c8fb5ba, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before 43c7d0a6917751ea898ae584d00f24f5deac46d4, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before b5231ad0b376b801ab8cf2962b182cc29deaedb3, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before 02226af69362758046822840fc6a497f5de33f00, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before 3a60b5af75abe8e3494ccd074fb4ae6e601a3e55, from 9771b8ccdfa6dcb1ac5128ca7fe8649f3092d392 before afa58b7384913c8773d837acdb07b035690ec5d2 and 1 more
Not affected: before 4.20, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*
CVE List

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net/ncsi: fix heap OOB read in NCSI_CMD_SEND_CMD payload length ncsi_send_cmd_nl() takes the number of bytes to copy from the attacker-controlled ncsi_pkt_hdr.length field of the in-band packet header, while the source buffer is the NCSI_ATTR_DATA netlink attribute whose readable size is nla_len() - sizeof(ncsi_pkt_hdr). The two length sources are never cross-checked: only nla_len() >= sizeof(struct ncsi_pkt_hdr) is enforced. With hdr->length set larger than the attribute payload (up to 65535 against at most 2032 readable bytes), ncsi_cmd_handler_oem() copies past the end of the netlink attribute buffer with unsafe_memcpy(), leaking up to ~64KB of kernel heap memory into the transmitted NCSI command packet. The destination skb is sized by the declared payload, so the write side does not overflow - this is a pure OOB read / information leak, reachable with CAP_NET_ADMIN on systems with a registered NCSI device (e.g. OpenBMC on Aspeed BMC SoCs, where NET_NCSI=y is standard). Reject commands whose declared payload extends past the end of the data attribute. The issue was found by the autokbug dynamic kernel fuzzer at Tencent Yunding Lab.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/ncsi: corrección de lectura OOB de heap en la longitud de la carga útil de NCSI_CMD_SEND_CMD ncsi_send_cmd_nl() toma el número de bytes a copiar del campo ncsi_pkt_hdr.length, controlado por el atacante, del encabezado del paquete en banda, mientras que el búfer de origen es el atributo netlink NCSI_ATTR_DATA cuyo tamaño legible es nla_len() - sizeof(ncsi_pkt_hdr). Las dos fuentes de longitud nunca se cotejan: solo se aplica nla_len() >= sizeof(struct ncsi_pkt_hdr). Con hdr -> length establecido en un valor mayor que la carga útil del atributo (hasta 65535 frente a un máximo de 2032 bytes legibles), ncsi_cmd_handler_oem() copia más allá del final del búfer del atributo netlink con unsafe_memcpy(), filtrando hasta ~64KB de memoria heap del kernel en el paquete de comando NCSI transmitido. El skb de destino se dimensiona según la carga útil declarada, por lo que el lado de escritura no desborda; esto es una lectura OOB pura / fuga de información, alcanzable con CAP_NET_ADMIN en sistemas con un dispositivo NCSI registrado (por ejemplo, OpenBMC en SoCs Aspeed BMC, donde NET_NCSI=y es estándar). Rechazar comandos cuya carga útil declarada se extiende más allá del final del atributo de datos. El problema fue encontrado por el fuzzer dinámico de kernel autokbug en Tencent Yunding Lab.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74694 changed 2026-08-22CVE Terms of Use
NVDCVE-2026-74694 changed 2026-10-14Public domain