Vulnerability in Kernel package: net: dsa: sja1105: add error handling in sja1105_setup()

Kernel Updated 02 Oct 2025

Summary

04/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000549: net: dsa: sja1105: add error handling in sja1105_setup(). Affects Kernel versions >= 0a7bdbc23d8a1d5e6f6f74abf00ba572f7369dd6, < 987e4ab8b8a4fcbf783069e03e7524cd39ffd563. 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 package is a crucial component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to communicate with the underlying hardware. The net: dsa: sja1105 module within the Kernel package is specifically designed for managing Ethernet switches. It enables the configuration and control of DSA (Distributed Switch Architecture) switches. However, a vulnerability has been identified in the sja1105_setup() function of the sja1105 module, which can potentially lead to security issues.

Vulnerability Detail

The vulnerability in the sja1105_setup() function of the sja1105 module within the Kernel package allows for the possibility of an attacker exploiting the lack of error handling. This could result in various security issues, such as denial-of-service attacks, privilege escalation, or information disclosure. The vulnerability was introduced in version v5.10 of the Linux Kernel and was fixed in version v5.12.9. The impact and attack plausibility of this vulnerability have not been proven yet.

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 workaround, users can consider implementing additional error handling in the sja1105_setup() function of the sja1105 module. This can be achieved by modifying the relevant code to handle potential errors and exceptions appropriately. Here is an example of how error handling can be added:

// Original code
int sja1105_setup()
{
  // Function implementation
}

// Modified code with error handling
int sja1105_setup()
{
  int ret;

  // Function implementation

  if (error_condition)
  {
    // Handle the error appropriately
    ret = -EINVAL;
    goto cleanup;
  }

  // Continue with the rest of the function

cleanup:
  // Cleanup code

  return ret;
}

Conclusion

In conclusion, a vulnerability has been identified in the sja1105_setup() function of the sja1105 module within the Kernel package. This vulnerability can potentially lead to security issues such as denial-of-service attacks, privilege escalation, or information disclosure. It is crucial to update the Linux Kernel package to version v5.12.9 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel package is a crucial component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to communicate with the underlying hardware.

The net: dsa: sja1105 module is a part of the Kernel package and is specifically designed for managing Ethernet switches. It enables the configuration and control of DSA (Distributed Switch Architecture) switches.

The sja1105_setup() function is a part of the sja1105 module within the Kernel package. It is responsible for setting up the necessary configurations and parameters for the sja1105 Ethernet switch.

The potential security issues resulting from this vulnerability include denial-of-service attacks, privilege escalation, and information disclosure. However, the actual impact and attack plausibility have not been proven yet.

To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.12.9 or later. This can be done by downloading the latest stable release from the official Linux Kernel repository and following the installation instructions provided.

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