]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: validate FDP configuration descriptor sizes
authorliuxixin <gliuxen@gmail.com>
Tue, 2 Jun 2026 14:00:01 +0000 (22:00 +0800)
committerKeith Busch <kbusch@kernel.org>
Wed, 3 Jun 2026 09:42:07 +0000 (02:42 -0700)
commit0ef4daa6534a510d61ea67c8ad9bb5097b0dd5f8
tree00cdea4929faa189cd6df1ee50871fac44d37d4e
parent3a413ece2504c70aa34a20be4dafec04e8c741f9
nvme: validate FDP configuration descriptor sizes

Validate descriptor sizes while walking the FDP configurations log so
dsze == 0 or a descriptor past the log end cannot cause unbounded
iteration or reads past the buffer.

Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: liuxixin <gliuxen@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c