Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-47182

5.5 · MEDIUM
Published Apr 10, 2024 linux CWE-770 EPSS 0.20% (9th pctl)

Overview

CVE-2021-47182 is a medium-severity vulnerability affecting linux linux_kernel. It was published on April 10, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: core: Fix scsi_mode_sense() buffer length handling

Several problems exist with scsi_mode_sense() buffer length handling:

1) The allocation length field of the MODE SENSE(10) command is 16-bits,

occupying bytes 7 and 8 of the CDB. With this command, access to mode

pages larger than 255 bytes is thus possible. However, the CDB

allocation length field is set by assigning len to byte 8 only, thus

truncating buffer length larger than 255.

2) If scsi_mode_sense() is called with len smaller than 8 with

sdev->use_10_for_ms set, or smaller than 4 otherwise, the buffer length

is increased to 8 and 4 respectively, and the buffer is zero filled

with these increased values, thus corrupting the memory following the

buffer.

Fix these 2 problems by using put_unaligned_be16() to set the allocation

length field of MODE SENSE(10) CDB and by returning an error when len is

too small.

Furthermor

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 0, < 5.15.5 Affected

Frequently Asked Questions

What is CVE-2021-47182?

CVE-2021-47182 is a medium-severity vulnerability affecting linux linux_kernel. It was published on April 10, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47182?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47182?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47182?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-47182 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.