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)
Sun, Jan 5, 9:17 PM
Unknown Object (File)
Sat, Jan 4, 1:44 AM
Unknown Object (File)
Dec 13 2024, 12:53 PM
Unknown Object (File)
Dec 12 2024, 1:50 PM
Unknown Object (File)
Nov 22 2024, 12:20 PM
Unknown Object (File)
Nov 4 2024, 2:52 AM
Unknown Object (File)
Nov 1 2024, 4:13 PM
Unknown Object (File)
Oct 31 2024, 7:57 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