eventfs: Initialize ei->children and ei->list in init_ei()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
eventfs: Initialize ei->children and ei->list in init_ei()
eventfs_create_dir() allocates the eventfs_inode and initializes it with init_ei(). But this does not initialize the eventfs_inode list_heads. If the eventfs_create_dir() fails due to memory pressure, it will call free_ei() before it initialized the lists, and that checks to make sure the eventfs_inode has no children. But because the list wasn't initialized, it will give a false warning.
Fix it by moving the list initialization into init_ei().
[ Rewrote change log ]
From the CVE record · Linux
The Linux kernel's eventfs code can issue a false warning when directory creation fails under memory pressure because inode lists have not been initialized. The input does not describe an attacker action, an access path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the eventfs fix; affected versions are not specified.