Page MenuHomeFreeBSD

Fix kernel memory disclosures in mpr and mps
ClosedPublic

Authored by asomers on Mar 1 2023, 7:18 PM.
Tags
None
Referenced Files
F86849834: D38842.id118141.diff
Wed, Jun 26, 1:27 PM
Unknown Object (File)
Sat, Jun 22, 7:02 PM
Unknown Object (File)
Mon, Jun 17, 6:57 PM
Unknown Object (File)
May 22 2024, 7:59 PM
Unknown Object (File)
May 22 2024, 7:58 PM
Unknown Object (File)
May 22 2024, 5:12 PM
Unknown Object (File)
May 22 2024, 3:30 PM
Unknown Object (File)
Jan 28 2024, 9:09 PM
Subscribers
None

Details

Summary

In every mpr and mps ioctl that copies kernel data to userland, validate
that the requested length does not exceed the size of the kernel's
buffer.

Note that all of these ioctls already required root access.

MFC after: 2 weeks
Sponsored by: Axcient

Test Plan

Manually tested with mpsutil and an mps card. I don't currently have any available mpr cards to test on.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 50083
Build 46975: arc lint + arc unit