Page MenuHomeFreeBSD

devctl: Add missing validation to DEV_RESET
ClosedPublic

Authored by markj on Oct 6 2024, 1:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 29, 3:43 PM
Unknown Object (File)
Sat, Aug 29, 3:42 PM
Unknown Object (File)
Mon, Aug 17, 9:29 AM
Unknown Object (File)
Sat, Aug 15, 8:37 PM
Unknown Object (File)
Sat, Aug 15, 8:11 AM
Unknown Object (File)
Fri, Aug 14, 8:02 PM
Unknown Object (File)
Thu, Aug 13, 7:54 PM
Unknown Object (File)
Wed, Aug 12, 1:22 PM
Subscribers

Details

Summary

As in other ioctls which access the parent bus, we need to check for a
NULL parent here. Otherwise it's possible to trigger a null pointer
dereference by resetting the root device.

Reported by: Elliott Mitchell <ehem+freebsd@m5p.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable