aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/backlight
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-11-12 19:23:32 +0000
committerMark Johnston <markj@FreeBSD.org>2026-11-16 21:16:22 +0000
commitcededaef835706784f07f6ced1d8736f00455323 (patch)
treefa6afe6d06d03fb6271ba7e38195c61aba15036f /sys/dev/backlight
parentc27fea568635032877ef43a3aabf5458632b0750 (diff)
so_splice: Serialize teardowns of splices
A socket splice can be configured with a timeout; once the timeout expires, the splice is automatically undone. The implementation of an unsplice operation detaches each socket from the splice structure, and then drains the timeout task. The timeout task takes the splice structure as an argument, and passes the source socket to so_unsplice(). It is possible for two threads to race with the task thread: one removes the source socket from the splice associated with currently running task, and the other thread splices that socket again, creating a new splice structure. The timeout thread may then unsplice the source socket even though it doesn't own that socket's current splice. The resulting use-after-free can be exploited by a local user to escalate privileges. Fix the problem by serializing teardowns of splices: make so_unsplice() callers specify the cause of the teardown, and ensure that threads can't race to destroy a splice after an error occurs. Approved by: so Security: FreeBSD-SA-26:87.socket Security: CVE-2026-127740 Reviewed by: gallatin Reported by: OpenAI Security Research Team Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61443
Diffstat (limited to 'sys/dev/backlight')
0 files changed, 0 insertions, 0 deletions