Restrict Bytes Count in smk_set_cipso() - Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001423: smackfs: restrict bytes count in smk_set_cipso(). Affects Kernel versions < 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a critical component of the Linux operating system that provides core functionality and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and enforces security policies. The smk_set_cipso() function is part of the smackfs (Simplified Mandatory Access Control Kernel Filesystem) module in the Kernel. This function is responsible for setting the CIPSO (Common IP Security Option) label on a file or directory. The CIPSO label is used for network packet filtering and access control based on IP security policies.

Vulnerability Detail

The vulnerability in smk_set_cipso() allows an attacker to manipulate the bytes count parameter, potentially leading to a buffer overflow or other memory corruption issues. By providing a large value for the bytes count, an attacker could overwrite adjacent memory regions, leading to arbitrary code execution or a system crash. The impact of this vulnerability depends on the attacker's ability to control the input and the specific context in which the function is called. Successful exploitation could result in privilege escalation, denial of service, or unauthorized access to sensitive information.

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

If updating the Kernel is not immediately feasible, a possible workaround is to restrict access to the vulnerable function by applying appropriate access controls or SELinux policies. This can help mitigate the risk of exploitation until the Kernel can be updated.

Conclusion

The vulnerability in smk_set_cipso() poses a risk of buffer overflow or memory corruption in the Kernel. It is crucial to update the Kernel to version v4.14.240 or later to fix this vulnerability. If immediate update is not possible, applying access controls or SELinux policies to restrict access to the vulnerable function can help mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the attacker's control over the input and the context in which the function is called. It could potentially lead to privilege escalation, denial of service, or unauthorized access to sensitive information.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known public exploit for this vulnerability. However, it is important to apply the recommended fix or workaround to mitigate the risk.

Yes, this vulnerability can be exploited remotely if the attacker can send malicious input to the smk_set_cipso() function. It is crucial to update the Kernel or apply the recommended workaround to prevent potential remote exploitation.

The successful exploitation of this vulnerability depends on the attacker's ability to control the input and the specific context in which the smk_set_cipso() function is called. If the attacker can manipulate the bytes count parameter, they can potentially trigger a buffer overflow or memory corruption.

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