Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47275

published

bcache: avoid oversized read request in cache missing code path

Published
21 May 2024, 14:20:03 UTC
Updated
11 May 2026, 13:51:21 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxcafe563591446cf80bfbc2fe3bc72a2e36cf1060 to < 555002a840ab88468e252b0eedf0b05e2ce7099c · cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to < 41fe8d088e96472f63164e213de44ec77be69478 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.10 (affected) · 0 to < 3.10 (unaffected · semver) · 5.12.11 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-rtx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-rtx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-rtx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-azurex86_64 Advisory build 4.12.14-16.194.1 SUSE-SU-2024:2901-1
SUSE / openSUSE SLE-12-SP5 kernel-azure-basex86_64 Advisory build 4.12.14-16.194.1 SUSE-SU-2024:2901-1
SUSE / openSUSE SLE-12-SP5 kernel-azure-develx86_64 Advisory build 4.12.14-16.194.1 SUSE-SU-2024:2901-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-bases390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-basex86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-devels390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-extrax86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgrafts390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-devels390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-default-mans390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-develnoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-devel-azurenoarch Advisory build 4.12.14-16.194.1 SUSE-SU-2024:2901-1
SUSE / openSUSE SLE-12-SP5 kernel-devel-rtnoarch Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-docsnoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-macrosnoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-builds390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-obs-buildx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-rtx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-rt-basex86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-rt-develx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-rt_debugx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-rt_debug-develx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-sourcenoarch Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-source-azurenoarch Advisory build 4.12.14-16.194.1 SUSE-SU-2024:2901-1
SUSE / openSUSE SLE-12-SP5 kernel-source-rtnoarch Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kernel-symsaarch64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-symsppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-symss390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-symsx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kernel-syms-azurex86_64 Advisory build 4.12.14-16.194.1 SUSE-SU-2024:2901-1
SUSE / openSUSE SLE-12-SP5 kernel-syms-rtx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_222-defaultppc64le Advisory build 1-8.3.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_222-defaults390x Advisory build 1-8.3.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_222-defaultx86_64 Advisory build 1-8.3.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultppc64le Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaults390x Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.222.1 SUSE-SU-2024:2561-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-rtx86_64 Advisory build 4.12.14-10.194.1 SUSE-SU-2024:2493-1
SUSE / openSUSE SLE-15-SP2 cluster-md-kmp-defaultaarch64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 cluster-md-kmp-defaultppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 cluster-md-kmp-defaults390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 cluster-md-kmp-defaultx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 dlm-kmp-defaultaarch64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 dlm-kmp-defaultppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 dlm-kmp-defaults390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 dlm-kmp-defaultx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 gfs2-kmp-defaultaarch64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 gfs2-kmp-defaultppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 gfs2-kmp-defaults390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 gfs2-kmp-defaultx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-defaultaarch64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-defaultppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-defaults390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-defaultx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-baseaarch64 Advisory build 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-baseppc64le Advisory build 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-bases390x Advisory build 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-basex86_64 Advisory build 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-develaarch64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-develppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-devels390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-develx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-livepatchppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-livepatchs390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-livepatchx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-livepatch-develppc64le Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-livepatch-devels390x Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-default-livepatch-develx86_64 Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-develnoarch Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-docsnoarch Advisory build 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-livepatch-5_3_18-150200_24_194-defaultppc64le Advisory build 1-150200.5.3.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-livepatch-5_3_18-150200_24_194-defaults390x Advisory build 1-150200.5.3.1 SUSE-SU-2024:2183-1
SUSE / openSUSE SLE-15-SP2 kernel-livepatch-5_3_18-150200_24_194-defaultx86_64 Advisory build 1-150200.5.3.1 SUSE-SU-2024:2183-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: bcache: avoid oversized read request in cache missing code path In the cache missing code path of cached device, if a proper location from the internal B+ tree is matched for a cache miss range, function cached_dev_cache_miss() will be called in cache_lookup_fn() in the following code block, [code block 1] 526 unsigned int sectors = KEY_INODE(k) == s->iop.inode 527 ? min_t(uint64_t, INT_MAX, 528 KEY_START(k) - bio->bi_iter.bi_sector) 529 : INT_MAX; 530 int ret = s->d->cache_miss(b, s, bio, sectors); Here s->d->cache_miss() is the call backfunction pointer initialized as cached_dev_cache_miss(), the last parameter 'sectors' is an important hint to calculate the size of read request to backing device of the missing cache data. Current calculation in above code block may generate oversized value of 'sectors', which consequently may trigger 2 different potential kernel panics by BUG() or BUG_ON() as listed below, 1) BUG_ON() inside bch_btree_insert_key(), [code block 2] 886 BUG_ON(b->ops->is_extents && !KEY_SIZE(k)); 2) BUG() inside biovec_slab(), [code block 3] 51 default: 52 BUG(); 53 return NULL; All the above panics are original from cached_dev_cache_miss() by the oversized parameter 'sectors'. Inside cached_dev_cache_miss(), parameter 'sectors' is used to calculate the size of data read from backing device for the cache missing. This size is stored in s->insert_bio_sectors by the following lines of code, [code block 4] 909 s->insert_bio_sectors = min(sectors, bio_sectors(bio) + reada); Then the actual key inserting to the internal B+ tree is generated and stored in s->iop.replace_key by the following lines of code, [code block 5] 911 s->iop.replace_key = KEY(s->iop.inode, 912 bio->bi_iter.bi_sector + s->insert_bio_sectors, 913 s->insert_bio_sectors); The oversized parameter 'sectors' may trigger panic 1) by BUG_ON() from the above code block. And the bio sending to backing device for the missing data is allocated with hint from s->insert_bio_sectors by the following lines of code, [code block 6] 926 cache_bio = bio_alloc_bioset(GFP_NOWAIT, 927 DIV_ROUND_UP(s->insert_bio_sectors, PAGE_SECTORS), 928 &dc->disk.bio_split); The oversized parameter 'sectors' may trigger panic 2) by BUG() from the agove code block. Now let me explain how the panics happen with the oversized 'sectors'. In code block 5, replace_key is generated by macro KEY(). From the definition of macro KEY(), [code block 7] 71 #define KEY(inode, offset, size) \ 72 ((struct bkey) { \ 73 .high = (1ULL << 63) | ((__u64) (size) << 20) | (inode), \ 74 .low = (offset) \ 75 }) Here 'size' is 16bits width embedded in 64bits member 'high' of struct bkey. But in code block 1, if "KEY_START(k) - bio->bi_iter.bi_sector" is very probably to be larger than (1<<16) - 1, which makes the bkey size calculation in code block 5 is overflowed. In one bug report the value of parameter 'sectors' is 131072 (= 1 << 17), the overflowed 'sectors' results the overflowed s->insert_bio_sectors in code block 4, then makes size field of s->iop.replace_key to be 0 in code block 5. Then the 0- sized s->iop.replace_key is inserted into the internal B+ tree as cache missing check key (a special key to detect and avoid a racing between normal write request and cache missing read request) as, [code block 8] 915 ret = bch_btree_insert_check_key(b, &s->op, &s->iop.replace_key); Then the 0-sized s->iop.replace_key as 3rd parameter triggers the bkey size check BUG_ON() in code block 2, and causes the kernel panic 1). Another ke ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

7

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to < 555002a840ab88468e252b0eedf0b05e2ce7099c (affected · git)cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to < 41fe8d088e96472f63164e213de44ec77be69478 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.10 (affected)0 to < 3.10 (unaffected · semver)5.12.11 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

bcache: avoid oversized read request in cache missing code path

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
c3606b1b64c88a080f100f9e5d3d6050397129eca083df134c9a36c23a173104
Ingested
23 Sep 2026, 07:57:11 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected