public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Two bug fix commit fixes in the ubi_resize_volume() were fixed by a patch in the mailing list
@ 2023-04-03  2:04 ZhaoLong Wang
  2023-04-03  3:55 ` Zhihao Cheng
  0 siblings, 1 reply; 6+ messages in thread
From: ZhaoLong Wang @ 2023-04-03  2:04 UTC (permalink / raw)
  To: linux-mtd

Hi

    Mainline fix commit 1e591ea072df ("ubi: Fix unreferenced object reported by kmemleak in ubi_resize_volume()")

and 9af31d6ec1a4 ("ubi: Fix use-after-free when volume resizing failed")  involve fixing memory security issues, which

were fixed by a patch [1] ("ubi: fix slab-out-of-bounds in ubi_eba_get_ldesc+0xfb/0x130") that was on the mailing list

in 2022. In addition to fixing the race issue, I think this fix keeping old_eba_tbl might be a better solution to the UAF

problem.


    I'd like to know why patch[1] didn't get into the mainline.

[1] http://patchwork.ozlabs.org/project/linux-mtd/patch/20220124024056.1996763-1-guoxuenan@huawei.com/

Best Regards,

ZhaoLong Wang

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2023-04-06  3:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-03  2:04 Two bug fix commit fixes in the ubi_resize_volume() were fixed by a patch in the mailing list ZhaoLong Wang
2023-04-03  3:55 ` Zhihao Cheng
2023-04-03  4:42   ` Zhihao Cheng
2023-04-05 20:48   ` Richard Weinberger
2023-04-06  1:20     ` Guo Xuenan
2023-04-06  3:07       ` ZhaoLong Wang

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