[PATCH 0/2] ubifs: tnc_delete: Fix two uaf bug when mem failure occurs

From: Zhihao Cheng

Date: Wed Oct 14 2026 - 02:10:26 EST


Fix two TNC traversing uaf problems after failure happens in
tnc_delete().

Zhihao Cheng (2):
ubifs: tnc_delete: Don't free zero-branch znodes if memory allocation
fails
ubifs: tnc_delete: Don't update collapsed znodes if memory allocation
fails

fs/ubifs/tnc.c | 44 +++++++++++++++++++++++++++++++++-----------
fs/ubifs/ubifs.h | 2 ++
2 files changed, 35 insertions(+), 11 deletions(-)

--
2.52.0