aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-11-12 19:23:32 +0000
committerMark Johnston <markj@FreeBSD.org>2026-11-17 16:57:23 +0000
commit6ace2eb40b443a0f69e9f008713c5fd78770c2cd (patch)
tree8baeede7427e4278096ec0cc1c8f049b39fcf843 /gnu
parent9a38d35b14bc96b54c85cf6c5bbc6b51fe95df8e (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 'gnu')
0 files changed, 0 insertions, 0 deletions