netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context

Kernel Updated 02 Oct 2025

Summary

31/07/2022
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback