CVE-2021-47275
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47275 is a vulnerability in the Linux kernel's bcache driver that was discovered and resolved in 2021. The issue occurs in the cache missing code path of the cached device, where the cached_dev_cache_miss() function can create an oversized read request when calculating the size of data read from the backing device (NVD, Red Hat).

Technical details

The vulnerability stems from an issue in the bcache driver where the calculation for the size of data read from the backing device can produce an excessively large value. This occurs when the parameter 'sectors' passed to cached_dev_cache_miss() may cause overflow in the code, potentially leading to two different kernel panics triggered by BUG() or BUG_ON() statements. The issue can manifest when KEY_START(k) - bio->bi_iter.bi_sector is larger than (1<<16) - 1, causing bkey size calculation overflow (Kernel Git).

Impact

The vulnerability can lead to kernel crashes when specific conditions related to oversized read requests are met. This primarily affects system stability and availability, as the oversized parameter 'sectors' can trigger kernel panics through two different paths: one in the bch_btree_insert_key() function and another in the biovec_slab() function (Red Hat).

Exploitability

The vulnerability requires specific conditions related to oversized read requests in the bcache driver. While it can cause system instability, exploitation requires particular circumstances involving the cache missing code path. Red Hat has rated this as having moderate severity, indicating that while it poses a risk, the exploitation complexity is relatively high (Red Hat).

Mitigation and workarounds

The issue has been fixed by implementing a size limit check in the bcache driver. The fix adds a local variable size_limit that is set to the minimum value between the max bkey size and max bio bvecs number. This ensures that s->insert_bio_sectors will never result in oversized replace_key size or bio bvecs number. Users are advised to update their systems with the patched version of the Linux kernel (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68422NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68399NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68398NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68376NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68374NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management