Re: [PATCH] udf: Fix crash after seekdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 09, 2021 at 12:48:41PM +0100, Jan Kara wrote:
> udf_readdir() didn't validate the directory position it should start
> reading from. Thus when user uses lseek(2) on directory file descriptor
> it can trick udf_readdir() into reading from a position in the middle of
> directory entry which then upsets directory parsing code resulting in
> errors or even possible kernel crashes. Similarly when the directory is
> modified between two readdir calls, the directory position need not be
> valid anymore.

... We don't have an xfstest for this already?  Actually, two.  One for
lseek() and one for modifying the directory as it's being read.



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux