Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.6.y 0/8] eventpoll: fix ep_remove struct eventpoll / struct file UAF
@ 2026-06-26  4:13 Wentao Guan
  2026-06-26  4:13 ` [PATCH 6.6.y 1/8] file: add fput() cleanup helper Wentao Guan
                   ` (8 more replies)
  0 siblings, 9 replies; 22+ messages in thread
From: Wentao Guan @ 2026-06-26  4:13 UTC (permalink / raw)
  To: sashal, gregkh, foss+kernel; +Cc: stable, brauner, Wentao Guan

Fixes CVE-2026-46242 eventpoll: fix ep_remove struct eventpoll / struct file UAF

base on link: https://lore.kernel.org/stable/20260619-6-12-cve-2026-46242-v1-0-e15a6de43c11@cherry.de/

add commit ("file: add fput() cleanup helper") to fix build error in v6.6.y :
error: cleanup argument not a function
struct file *file __free(fput) = NULL;

Christian Brauner (8):
  file: add fput() cleanup helper
  eventpoll: use hlist_is_singular_node() in __ep_remove()
  eventpoll: split __ep_remove()
  eventpoll: kill __ep_remove()
  eventpoll: drop vestigial __ prefix from ep_remove_{file,epi}()
  eventpoll: rename ep_remove_safe() back to ep_remove()
  eventpoll: move epi_fget() up
  eventpoll: fix ep_remove struct eventpoll / struct file UAF

 fs/eventpoll.c       | 142 ++++++++++++++++++++++++-------------------
 include/linux/file.h |   2 +
 2 files changed, 81 insertions(+), 63 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2026-06-28 16:35 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26  4:13 [PATCH 6.6.y 0/8] eventpoll: fix ep_remove struct eventpoll / struct file UAF Wentao Guan
2026-06-26  4:13 ` [PATCH 6.6.y 1/8] file: add fput() cleanup helper Wentao Guan
2026-06-26  4:13 ` [PATCH 6.6.y 2/8] eventpoll: use hlist_is_singular_node() in __ep_remove() Wentao Guan
2026-06-26  4:13 ` [PATCH 6.6.y 3/8] eventpoll: split __ep_remove() Wentao Guan
2026-06-26  4:13 ` [PATCH 6.6.y 4/8] eventpoll: kill __ep_remove() Wentao Guan
2026-06-26  4:14 ` [PATCH 6.6.y 5/8] eventpoll: drop vestigial __ prefix from ep_remove_{file,epi}() Wentao Guan
2026-06-26  4:14 ` [PATCH 6.6.y 6/8] eventpoll: rename ep_remove_safe() back to ep_remove() Wentao Guan
2026-06-26  4:14 ` [PATCH 6.6.y 7/8] eventpoll: move epi_fget() up Wentao Guan
2026-06-26  4:14 ` [PATCH 6.6.y 8/8] eventpoll: fix ep_remove struct eventpoll / struct file UAF Wentao Guan
2026-06-26 17:54 ` [PATCH 6.6.y 0/8] " Sasha Levin
2026-06-28 14:20   ` Salvatore Bonaccorso
2026-06-28 16:19     ` [PATCH 6.1.y 0/9] " Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 1/9] eventpoll: don't decrement ep refcount while still holding the ep mutex Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 2/9] file: add fput() cleanup helper Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 3/9] eventpoll: use hlist_is_singular_node() in __ep_remove() Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 4/9] eventpoll: split __ep_remove() Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 5/9] eventpoll: kill __ep_remove() Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 6/9] eventpoll: drop vestigial __ prefix from ep_remove_{file,epi}() Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 7/9] eventpoll: rename ep_remove_safe() back to ep_remove() Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 8/9] eventpoll: move epi_fget() up Wentao Guan
2026-06-28 16:19     ` [PATCH 6.1.y 9/9] eventpoll: fix ep_remove struct eventpoll / struct file UAF Wentao Guan
2026-06-28 16:34     ` [PATCH 6.6.y 0/8] " Wentao Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox