netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context
Summary
GSD-2022-1004288: netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context. Affects Kernel versions >= bc899ee1c898e520574ff4d99356eb2e724a9265, < 44db13d252a202be58afe4a1b5f507779c40501c. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The netfs package is a part of the Linux Kernel ecosystem. It provides a framework for network file systems to be implemented as kernel modules. The netfs_i_context structure is used to store context information for netfs inodes. In previous versions, there was a warning generated by gcc-12 due to the way the vfs inode was accessed in netfs_i_context. This vulnerability affects the stability and maintainability of the netfs package.
Vulnerability Detail
The vulnerability arises from the improper handling of the vfs inode in netfs_i_context. This can lead to potential security issues, although the actual impact and attack plausibility have not been proven yet. The vulnerability was introduced in Linux Kernel version v5.18 by commit bc899ee1c898e520574ff4d99356eb2e724a9265. It has been fixed in version v5.18.6 by commit 44db13d252a202be58afe4a1b5f507779c40501c.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The netfs package in the Linux Kernel is vulnerable to a gcc-12 warning related to the handling of vfs inode in netfs_i_context. It is recommended to update the Linux Kernel to version v5.18.6 or later to fix this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Netfs is a framework for implementing network file systems as kernel modules in the Linux Kernel.
The impact of this vulnerability is not yet proven, but it can potentially lead to security issues.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability.
Yes, the vulnerability has been fixed in Linux Kernel version v5.18.6.
You can find more information about this vulnerability in the GSD-2022-1004288 JSON file at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1004xxx/GSD-2022-1004288.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.