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

Zhihao Cheng chengzhihao1 at huawei.com
Tue Oct 13 23:02:50 PDT 2026


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




More information about the linux-mtd mailing list