Linux NFS development
 help / color / mirror / Atom feed
* Question about CVE-2022-24448
@ 2022-02-08 11:48 zhangxiaoxu (A)
       [not found] ` <4e965ca75c4c4b70ac3322c39873d418@epfl.ch>
  0 siblings, 1 reply; 2+ messages in thread
From: zhangxiaoxu (A) @ 2022-02-08 11:48 UTC (permalink / raw)
  To: tao.lyu, Trond Myklebust
  Cc: ChenXiaoSong, yanaijie, zhangyi (F), Linux NFS Mailing List

Hi Trond and Tao,

I have some question about CVE-2022-24448[1].

It's description as:
   An issue was discovered in fs/nfs/dir.c in the Linux kernel before 5.16.5.
   If an application sets the O_DIRECTORY flag, and tries to open a regular
   file, nfs_atomic_open() performs a regular lookup. If a regular file is
   found, ENOTDIR should occur, but the server instead returns uninitialized
   data in the file descriptor.

It's fixed by ac795161c936 ("NFSv4: Handle case where the lookup of a directory fails")

When try to open a regular file with O_DIRECTORY flag,
it always return -ENOTDIR to userspace rather than a
valid file descriptor because the 'do_open' check the
dentry type.

My questions are:
1. which uninitialized data in the file description are returned from 'nfs_atomic_open'?
2. where use the uninitialized data?
3. which uninitialized data are returned from server?
4. is there a PoC reproducer or how to trigger it?


[1] https://nvd.nist.gov/vuln/detail/CVE-2022-24448

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

end of thread, other threads:[~2022-02-09 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-08 11:48 Question about CVE-2022-24448 zhangxiaoxu (A)
     [not found] ` <4e965ca75c4c4b70ac3322c39873d418@epfl.ch>
2022-02-09 11:28   ` zhangxiaoxu (A)

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