Skip to contentSkip to conversation

Bug: use-after-free in udf_statfs in fs/udf/super.c:2415

DISCUSSION Kun Hu 1 participant 1 message Jan 7, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Kun Hu

author
#1 lore raw
Quoted 33 lines
Quoted 33 lines
Quoted 13 lines · 2025年1月6日 23:08,Kun Hu <[email protected]> 写道:

Well, checking the assembly RDI should contain the partition number but it is apparently some pointer. So the buffer for LVID got corrupted. How that happened is really impossible to say without a reproducer. The problem needn't even be in UDF code. So for now it is sadly impossible to do anything meaningful about this bug.

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR

Hi, Jan.

There was a bug report with the wrong subject link subject, but the error reported was actually in udf_final_lvid as well, here is the link to the bug

Regarding why this link is mentioned above, it's because the current bug in the email we tried several times to get a replicator for c and syzlang, but the location of this bug report changed (see below for the replicator). The bug still seems to be the same bug that was previously found in the rc3 version, which is the link above.

c reproducer: https://drive.google.com/file/d/13R46qr1MD07VrFICxeBoeuwbuFVzJVBK/view?usp=sharing
syzlang reproducer: https://drive.google.com/file/d/1hQiJGYG3Dy1z9mGmsxtDKqJ1BElES2Hh/view?usp=sharing

Quoted 8 lines
Quoted 6 lines

I may be focusing on the Fuzzing method itself, locating this issue is a bit difficult for me, and this new c replicator is very redundant and doesn't seem to have much value? Do you see if I can provide any test information to find the root cause of this problem?

The above reproducer is the result I just got, I haven't disabled CONFIG_BLK_DEV_WRITE_MOUNTED yet. Do I need to disable it and then test to observe the result? ——
thanks,
Kun Hu

Hi, Jan.

This crash has not been reproduced after disable CONFIG_BLK_DEV_WRITE_MOUNTED.

——
Thanks,
Kun Hu