SCSI Command Authorization Bypass in Linux Kernel - CVE-2012-4542

linux Updated 02 Oct 2025

Summary

28/02/2013
N/A
No i
Unrated
Not published

DEBIAN-CVE-2012-4542: block/scsi_ioctl.c in the Linux kernel through 3.8 does not properly consider the SCSI device class during authorization of SCSI commands, which allows local users to bypass intended access restrictions via an SG_IO ioct... Affects linux versions 5.10.103-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 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 Linux kernel is a core component of the operating system that manages hardware resources and provides essential services for software applications. It is responsible for facilitating communication between hardware and software, ensuring efficient resource management, and maintaining system stability. The vulnerability identified as CVE-2012-4542 affects the SCSI (Small Computer System Interface) subsystem of the Linux kernel, which is responsible for handling SCSI devices. This vulnerability allows local users to bypass access restrictions on SCSI commands, potentially leading to unauthorized access to sensitive data or system resources.

Vulnerability Detail

The vulnerability exists in the block/scsi_ioctl.c file of the Linux kernel up to version 3.8. It fails to properly consider the SCSI device class when authorizing SCSI commands. This oversight allows local users to exploit the SG_IO ioctl call, leveraging overlapping opcodes to bypass intended access restrictions. The ramifications of this vulnerability include unauthorized access to SCSI devices, which could lead to data leakage, system instability, or further exploitation of the system. It is crucial for system administrators to address this vulnerability to maintain system integrity and security.

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, system administrators can restrict access to SCSI devices by implementing stricter user permissions and access controls. This can help mitigate the risk of unauthorized access until the system can be updated to a patched version.

Conclusion

CVE-2012-4542 is a significant vulnerability in the Linux kernel that can lead to unauthorized access to SCSI devices. It is essential for users and administrators to update their systems to patched versions to mitigate the risks associated with this vulnerability. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2012-4542 is a vulnerability in the Linux kernel that allows local users to bypass access restrictions on SCSI commands, potentially leading to unauthorized access to sensitive data.

The vulnerability affects the Linux kernel through version 3.8.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected by this vulnerability without any signup.

The risks include unauthorized access to SCSI devices, data leakage, and potential exploitation of the system, which could compromise its integrity and security.

If immediate updates are not possible, consider implementing stricter user permissions and access controls as a temporary workaround to mitigate risks.

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