Page MenuHomeFreeBSD

Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
ClosedPublic

Authored by markj on Mar 19 2020, 5:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 9:01 PM
Unknown Object (File)
Mar 7 2024, 11:48 PM
Unknown Object (File)
Dec 20 2023, 5:23 AM
Unknown Object (File)
Dec 13 2023, 12:20 AM
Unknown Object (File)
Dec 3 2023, 10:04 AM
Unknown Object (File)
Jul 9 2023, 11:24 PM
Unknown Object (File)
Jul 5 2023, 11:52 AM
Unknown Object (File)
Jul 5 2023, 11:52 AM
Subscribers

Details

Summary

The inpcb needs to be locked when we update output packet options.
Otherwise it is possible for the IPV6_2292PKTOPTIONS handler to free
packet option structures while another thread is reading or updating
them.

Note that the option handler is still kind of broken. For instance it
frees all options before performing privilege checks for individual
options. However, this can be fixed separately.

Reported by: syzbot+52eb0fd4ddc119787f9d@syzkaller.appspotmail.com

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable