Page MenuHomeFreeBSD

devctl: Add missing validation to DEV_RESET
ClosedPublic

Authored by markj on Oct 6 2024, 1:17 PM.
Tags
None
Referenced Files
F174206618: D46965.id144358.diff
Thu, Oct 1, 9:01 AM
Unknown Object (File)
Mon, Sep 28, 11:36 PM
Unknown Object (File)
Sun, Sep 27, 5:01 PM
Unknown Object (File)
Sun, Sep 27, 4:27 PM
Unknown Object (File)
Sun, Sep 27, 5:45 AM
Unknown Object (File)
Thu, Sep 24, 7:25 AM
Unknown Object (File)
Thu, Sep 17, 7:03 AM
Unknown Object (File)
Thu, Sep 17, 7:03 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59793
Build 56679: arc lint + arc unit