linux/net/ncsi
Hari Kalavakunta 6716de171b net: ncsi: Fix buffer overflow in fetching version id
[ Upstream commit 8e16170ae9 ]

In NC-SI spec v1.2 section 8.4.44.2, the firmware name doesn't
need to be null terminated while its size occupies the full size
of the field. Fix the buffer overflow issue by adding one
additional byte for null terminator.

Signed-off-by: Hari Kalavakunta <kalavakunta.hari.prasad@gmail.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Link: https://patch.msgid.link/20250610193338.1368-1-kalavakunta.hari.prasad@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-28 16:24:22 +02:00
..
internal.h net: ncsi: Fix buffer overflow in fetching version id 2025-08-28 16:24:22 +02:00
Kconfig net/ncsi: add NCSI Intel OEM command to keep PHY up 2021-07-08 14:16:39 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ncsi-aen.c Revert ncsi: Propagate carrier gain/loss events to the NCSI controller 2023-11-28 16:56:33 +00:00
ncsi-cmd.c net/ncsi: Add NC-SI 1.2 Get MC MAC Address command 2025-03-13 12:50:20 +01:00
ncsi-manage.c net/ncsi: wait for the last response to Deselect Package before configuring channel 2025-03-13 12:50:33 +01:00
ncsi-netlink.c net/ncsi: Fix netlink major/minor version numbers 2024-01-25 14:52:36 -08:00
ncsi-netlink.h net/ncsi: Fix netlink registration 2020-11-12 17:00:13 -08:00
ncsi-pkt.h net: ncsi: Fix GCPS 64-bit member variables 2025-06-27 11:05:12 +01:00
ncsi-rsp.c net: ncsi: Fix buffer overflow in fetching version id 2025-08-28 16:24:22 +02:00