eventpoll: fix ep_remove struct eventpoll / struct file UAF
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | eventpoll: don't decrement ep refcount while still holding the ep mutexfs/ | +5 | 0 replies | |
| 2/9 | file: add fput() cleanup helperinclude/ | +2 | 0 replies | |
| 3/9 | eventpoll: use hlist_is_singular_node() in __ep_remove()fs/ | +1 | 0 replies | |
| 4/9 | eventpoll: split __ep_remove()fs/ | +23 | 0 replies | |
| 5/9 | eventpoll: kill __ep_remove()fs/ | +30 | 0 replies | |
| 6/9 | eventpoll: drop vestigial __ prefix from ep_remove_{file,epi}()fs/ | +6 | 0 replies | |
| 7/9 | eventpoll: rename ep_remove_safe() back to ep_remove()fs/ | +8 | 0 replies | |
| 8/9 | eventpoll: move epi_fget() upfs/ | +28 | 0 replies | |
| 9/9 | eventpoll: fix ep_remove struct eventpoll / struct file UAFfs/ | +10 | 0 replies |
Reviews trailers per patch
1 of 9 patches has a Reviewed-by or Acked-by.
| Patch | Josef Bacik | Jeff Layton |
|---|---|---|
| 1/9 | ||
| 2/9 | R-b | R-b |
| 3/9 | ||
| 4/9 | ||
| 5/9 | ||
| 6/9 | ||
| 7/9 | ||
| 8/9 | ||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 6.1.y 0/9] eventpoll: fix ep_remove struct eventpoll / struct file UAF
Fixes CVE-2026-46242 eventpoll: fix ep_remove struct eventpoll / struct file UAF
base on link: https://lore.kernel.org/stable/[email protected]/
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;
add commit ("eventpoll: don't decrement ep refcount while still holding the ep mutex") to fix context different in v6.1.y
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
Linus Torvalds (1):
eventpoll: don't decrement ep refcount while still holding the ep
mutex
fs/eventpoll.c | 152 +++++++++++++++++++++++-------------------- include/linux/file.h | 2 + 2 files changed, 85 insertions(+), 69 deletions(-)
Signature · 1 line
2.30.2