aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vmware
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-11-12 19:18:29 +0000
committerMark Johnston <markj@FreeBSD.org>2026-11-16 21:17:12 +0000
commit46fcdeb6cdad69d04171a5439a99ce42efe7e783 (patch)
treee1854eddccc610adb551a6b38dd2778ac979cf82 /sys/dev/vmware
parent6afa595f1f1666c3cd39f12cd4271f358549062f (diff)
freebsd32: Avoid modifying a shared control message
freebsd32_copy_msg_out() copies out received control messages. The cmsg ABI differs between the 32-bit and native ABIs in that the 32-bit ABI requires only 4-byte alignment for message bodies, see CMSG_ALIGN. When the control message is read from the socket buffer with MSG_PEEK, short messages which fit into an mbuf are copied into private storage, but larger messages are returned by acquiring a counted reference on the underlying mbuf cluster still attached to the socket buffer. When the underlying storage is shared, the non-atomic, temporary modification of the control message header in freebsd32_copy_msg_out() can be abused to corrupt the message queue; this can be leveraged to escalate privileges. Approved by: so Security: FreeBSD-SA-26:86.freebsd32 Security: CVE-2026-101321 Reported by: OpenAI Security Research Team Reviewed by: brooks, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61355
Diffstat (limited to 'sys/dev/vmware')
0 files changed, 0 insertions, 0 deletions