Critical Vulnerability in Linux Kernel: ksmbd Attribute Handling Flaw

linux Updated 02 Oct 2025

Summary

15/01/2025
N/A
No i
Medium
5.5

CVE-2024-57895: In the Linux kernel, the following vulnerability has been resolved: ksmbd: set ATTR_CTIME flags when setting mtime David reported that the new warning from setattr_copy_mgtime is coming like the following. Affects linux versions 6.1.106-1 – 6.9.9-1. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware and software interaction. It supports a wide range of functionalities, including file systems, process management, and network protocols. The ksmbd module specifically facilitates SMB (Server Message Block) protocol operations, allowing for file sharing and printing services over a network. This vulnerability affects the way ksmbd handles file attribute changes, particularly concerning the setting of access time (atime), modification time (mtime), and change time (ctime).

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the ksmbd module where it attempts to set the access time and modification time without also updating the change time. This oversight can lead to inconsistencies in file attribute management and may trigger warnings during operation. The issue was reported by David and is characterized by a warning message generated by the 'setattr_copy' function, indicating a potential flaw in the attribute setting process. If exploited, this could lead to unexpected behavior in file handling and may affect system stability.

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

Currently, there are no specific workarounds mentioned for this vulnerability. However, users are advised to monitor their systems for any unusual behavior related to file attribute changes and to apply the patch as soon as it becomes available.

Conclusion

The CVE-2024-57895 vulnerability in the Linux kernel's ksmbd module highlights a critical issue in file attribute management. Users are urged to update their systems to the patched version to mitigate potential risks associated with this vulnerability. Regular monitoring and prompt updates are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-57895 is a vulnerability in the Linux kernel's ksmbd module that involves improper handling of file attribute changes, specifically not updating the change time when setting access and modification times.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. By utilizing the Vulert playground, you can check if your application is affected by CVE-2024-57895 without needing to sign up.

The primary impact of this vulnerability is the generation of warnings during file attribute changes, which could lead to inconsistencies and unexpected behavior in file handling within the ksmbd module.

Yes, a patch has been released for the Linux kernel to address CVE-2024-57895. Users are encouraged to update their systems to the latest version that includes this fix.

While there are no specific workarounds, it is advisable to monitor your system for any unusual behavior related to file attributes and to apply the patch as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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