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-1001347: smackfs: restrict bytes count in smk_set_cipso(). Affects Kernel versions < 135122f174c357b7a3e58f40fa5792156c5e93e6. 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 Your last release was probably never penetration tested 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 critical 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 enforcing the Smack (Simplified Mandatory Access Control Kernel) security policies. Smack is a Linux security module that implements mandatory access control rules based on labels assigned to processes and files. The smk_set_cipso() function in smackfs is used to set the CIPSO (Common IP Security Option) label on a file. This label provides additional security attributes for network communication. However, a vulnerability has been discovered in the implementation of smk_set_cipso() that allows an attacker to exceed the expected byte count, potentially leading to memory corruption or other security issues.

Vulnerability Detail

The vulnerability in smackfs arises from a lack of proper input validation in the smk_set_cipso() function. By providing a maliciously crafted input with an excessive byte count, an attacker can trigger a buffer overflow or other memory corruption issues. This could potentially allow the attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition. The impact and attack plausibility of this vulnerability have not been proven, but it is essential to address it to ensure the security of the system.

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, users can disable the Smack security module or restrict access to the vulnerable functionality. However, these workarounds may impact the overall security posture of the system and should only be considered if updating the Kernel is not immediately feasible. Disabling the Smack security module can be achieved by modifying the system's configuration files or kernel boot parameters. It is recommended to consult the official documentation or seek assistance from the system administrator for proper guidance on implementing these workarounds.

Conclusion

The vulnerability in smackfs, which allows an attacker to exceed the expected byte count in smk_set_cipso(), poses a potential security risk. It is crucial to update the Linux Kernel to version v5.4.133 or later to mitigate this vulnerability. Disabling the Smack security module or implementing access restrictions can serve as temporary workarounds, but updating the Kernel is the recommended long-term solution. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

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

smackfs is a module in the Linux Kernel that enforces the Smack (Simplified Mandatory Access Control Kernel) security policies.

Smack is a Linux security module that implements mandatory access control rules based on labels assigned to processes and files.

CIPSO (Common IP Security Option) is a security label used for network communication, providing additional security attributes.

This vulnerability could potentially allow an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition.

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