Page MenuHomeFreeBSD

devctl: Add missing validation to DEV_RESET
ClosedPublic

Authored by markj on Oct 6 2024, 1:17 PM.
Tags
None
Referenced Files
F159030261: D46965.id.diff
Tue, Jun 9, 6:36 AM
Unknown Object (File)
Mon, Jun 8, 3:56 PM
Unknown Object (File)
Sat, May 16, 12:23 AM
Unknown Object (File)
Tue, May 12, 12:40 PM
Unknown Object (File)
May 8 2026, 6:02 PM
Unknown Object (File)
May 8 2026, 10:13 AM
Unknown Object (File)
May 8 2026, 5:17 AM
Unknown Object (File)
May 6 2026, 4:35 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