Page MenuHomeFreeBSD

udf: Reject read requests with an invalid length
ClosedPublic

Authored by jhb on Jul 27 2023, 11:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 4:12 AM
Unknown Object (File)
Sat, Oct 11, 4:12 AM
Unknown Object (File)
Sat, Oct 11, 4:11 AM
Unknown Object (File)
Fri, Oct 10, 9:10 PM
Unknown Object (File)
Fri, Oct 3, 4:56 AM
Unknown Object (File)
Sep 10 2025, 1:48 PM
Unknown Object (File)
Sep 9 2025, 8:08 PM
Unknown Object (File)
Sep 8 2025, 3:48 PM
Subscribers

Details

Summary
  • If the size is negative or if rounding it up to a multiple of the block size overflows, fail the read request with ERANGE.
  • While here, add a sanity check that the ICB length for the root directory is at least as long as a minimum-sized file entry.

PR: 257768
Reported by: Robert Morris <rtm@lcs.mit.edu>
Sponsored by: FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable