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, Sep 26, 2:03 AM
Unknown Object (File)
Sep 1 2025, 2:56 AM
Unknown Object (File)
Sep 1 2025, 1:25 AM
Unknown Object (File)
Aug 16 2025, 2:18 AM
Unknown Object (File)
Aug 12 2025, 1:51 PM
Unknown Object (File)
Aug 11 2025, 3:32 PM
Unknown Object (File)
Aug 8 2025, 12:45 PM
Unknown Object (File)
Aug 7 2025, 3:05 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