aboutsummaryrefslogtreecommitdiff
path: root/lib/libpathconv
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2022-03-28 13:33:54 +0000
committerEd Maste <emaste@FreeBSD.org>2022-04-04 16:24:05 +0000
commitaef190f298af3659a7c9cf1c5d17934e6b26019f (patch)
treed81ebc758232a6940638e92c2b7cafdbd5cb4437 /lib/libpathconv
parent367d0c7d6617c8ef316b71e420b8a7a7a7e66a8a (diff)
mpr/mps/mpt: verify cfg page ioctl lengths
*_CFG_PAGE ioctl handlers in the mpr, mps, and mpt drivers allocated a buffer of a caller-specified size, but copied to it a fixed size header. Add checks that the size is at least the required minimum. Note that the device nodes are owned by root:operator with 0640 permissions so the ioctls are not available to unprivileged users. This change includes suggestions from scottl, markj and mav. Two of the mpt cases were reported by Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative; scottl reported the third case in mpt. Same issue found in mpr and mps after discussion with imp. Reported by: Lucas Leong (@_wmliang_), Trend Micro Zero Day Initiative Reviewed by: imp, mav MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34692 (cherry picked from commit 8276c4149b5fc7c755d6b244fbbf6dae1939f087) (cherry picked from commit 0b29e1b9f9df3bde6402cccc49cb850c0dcc35fb) Approved by: re (gjb)
Diffstat (limited to 'lib/libpathconv')
0 files changed, 0 insertions, 0 deletions