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)
Tue, Jan 14, 12:51 AM
Unknown Object (File)
Dec 20 2024, 5:21 AM
Unknown Object (File)
Dec 19 2024, 4:26 PM
Unknown Object (File)
Nov 27 2024, 11:30 AM
Unknown Object (File)
Nov 13 2024, 3:57 PM
Unknown Object (File)
Oct 29 2024, 5:52 PM
Unknown Object (File)
Oct 24 2024, 1:43 AM
Unknown Object (File)
Oct 13 2024, 10:45 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