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)
Fri, Nov 21, 10:06 PM
Unknown Object (File)
Thu, Nov 13, 10:14 PM
Unknown Object (File)
Thu, Nov 13, 9:40 AM
Unknown Object (File)
Thu, Nov 13, 8:12 AM
Unknown Object (File)
Nov 5 2025, 7:12 AM
Unknown Object (File)
Oct 27 2025, 2:47 AM
Unknown Object (File)
Oct 23 2025, 7:15 PM
Unknown Object (File)
Oct 18 2025, 6:43 AM
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