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)
Mon, Apr 6, 12:39 PM
Unknown Object (File)
Mon, Apr 6, 7:11 AM
Unknown Object (File)
Feb 8 2026, 12:13 AM
Unknown Object (File)
Feb 7 2026, 11:45 PM
Unknown Object (File)
Jan 30 2026, 11:34 PM
Unknown Object (File)
Jan 29 2026, 8:18 PM
Unknown Object (File)
Jan 16 2026, 3:16 AM
Unknown Object (File)
Dec 25 2025, 2:53 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