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
Unknown Object (File)
Fri, Oct 10, 2:39 PM
Unknown Object (File)
Fri, Oct 10, 2:39 PM
Unknown Object (File)
Fri, Oct 10, 2:39 PM
Unknown Object (File)
Fri, Oct 10, 8:06 AM
Unknown Object (File)
Wed, Oct 8, 5:38 PM
Unknown Object (File)
Thu, Oct 2, 11:56 AM
Unknown Object (File)
Thu, Oct 2, 5:29 AM
Unknown Object (File)
Thu, Oct 2, 1:36 AM
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