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
F154253073: D38842.id118141.diff
Mon, Apr 27, 10:20 AM
Unknown Object (File)
Sun, Apr 26, 3:24 PM
Unknown Object (File)
Sat, Apr 25, 9:01 AM
Unknown Object (File)
Fri, Apr 24, 5:57 AM
Unknown Object (File)
Wed, Apr 15, 12:46 PM
Unknown Object (File)
Tue, Apr 7, 7:26 AM
Unknown Object (File)
Mon, Apr 6, 4:46 PM
Unknown Object (File)
Mon, Apr 6, 12:50 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 Not Applicable
Unit
Tests Not Applicable