aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/netgraph/socket
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-08-24 18:15:38 +0000
committerMark Johnston <markj@FreeBSD.org>2026-08-24 21:51:23 +0000
commitcec488c1669b78039660016980e25a5a193b3e65 (patch)
tree2a60addceff7f6e28210a5673f91601f847908bf /sys/modules/netgraph/socket
parent45a190c827e4b3b57b8c9799731cb1baf5554e04 (diff)
posixshm: Fix a TOCTOU race in the FIOSSHMLPGCNF handler
The check for whether shm_lp_psind was assigned was unlocked. This race can be exploited to create an object with psind==2 but with only pagesizes[1] worth of pages populated. This in turn can be used to escalate privileges. Fix this by acquiring the rangelock earlier. In shm_mmap_large(), assert that we hold the rangelock. In shm_write(), annotate an unlocked load of shm_lp_psind. Approved by: so Security: FreeBSD-SA-26:63.posixshm Security: CVE-2026-58094 Reported by: tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59104
Diffstat (limited to 'sys/modules/netgraph/socket')
0 files changed, 0 insertions, 0 deletions