Vulnerability in Kernel: smackfs: restrict bytes count in smk_set_cipso()

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

GSD-2021-1001285: smackfs: restrict bytes count in smk_set_cipso(). Affects Kernel versions < 3780348c1a0e14ffefcaf1fc521f815bcaac94b0. 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 Kernel is a crucial component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The smackfs module in the Kernel is responsible for implementing the Security-Enhanced Linux (SELinux) Mandatory Access Control (MAC) system. SELinux provides fine-grained access control policies to enforce security policies and protect against unauthorized access. However, a vulnerability has been identified in the smackfs module that could potentially allow an attacker to bypass security restrictions and gain unauthorized access to sensitive resources.

Vulnerability Detail

The vulnerability, identified as GSD-2021-1001285, exists in the smackfs module of the Kernel. Specifically, the issue lies in the smk_set_cipso() function, which is responsible for setting the Common IP Security Option (CIPSO) label for a smackfs inode. The function does not properly restrict the number of bytes that can be set as the CIPSO label, potentially leading to a buffer overflow or other memory corruption vulnerabilities. An attacker could exploit this vulnerability by providing a maliciously crafted CIPSO label, leading to arbitrary code execution or privilege escalation. This could result in unauthorized access to sensitive information or the compromise of the entire system. The vulnerability has been fixed in Linux Kernel version v5.10.51 by commit 3780348c1a0e14ffefcaf1fc521f815bcaac94b0.

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

As a temporary workaround until the Kernel is updated, users can disable the smackfs module by removing it from the Kernel configuration and rebuilding the Kernel. This can be done by modifying the Kernel configuration file and commenting out the line that enables the smackfs module. After making the necessary changes, the Kernel can be rebuilt and installed. However, it is important to note that disabling the smackfs module may impact the functionality of SELinux and other security features provided by the module. Therefore, it is recommended to update the Kernel as soon as possible.

Conclusion

The vulnerability in the smackfs module of the Kernel poses a significant risk to the security of the system. It is crucial to update the Kernel to the latest version to ensure that the vulnerability is patched and the system is protected. Regularly updating the Kernel is essential to stay protected against known vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a crucial component of the Linux operating system that manages system resources and facilitates communication between hardware and software.

The smackfs module is responsible for implementing the Security-Enhanced Linux (SELinux) Mandatory Access Control (MAC) system.

SELinux is a security feature in Linux that provides fine-grained access control policies to enforce security policies and protect against unauthorized access.

This vulnerability could allow an attacker to bypass security restrictions and gain unauthorized access to sensitive resources, potentially leading to arbitrary code execution or privilege escalation.

To fix this vulnerability, it is recommended to update the Kernel to version v5.10.51 or later.

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