Skip to content
Noroxi
CVE-2025-38263· NVD / CVE Program· CNA Linux

bcache: fix NULL pointer in cache_set_flush()

Noroxi assessment

Priority: Monitor (action score 22/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.17% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Linux Linux 1e46ed947ec658f89f1a910d880cd05e42d3763e, 1f25f2d3fa29325320c19a30abf787e0bd5fc91b, 3f9e128186c99a117e304f1dce6d0b9e50c63cd8; azl3 kernel 6.6.92.2-2 on Azure Linux 3.0 6.6.96.1-1.

Low priority for now. Upgrade to Linux Linux 1e46ed947ec658f89f1a910d880cd05e42d3763e, 1f25f2d3fa29325320c19a30abf787e0bd5fc91b, 3f9e128186c99a117e304f1dce6d0b9e50c63cd8; azl3 kernel 6.6.92.2-2 on Azure Linux 3.0 6.6.96.1-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

In the Linux kernel, the following vulnerability has been resolved: bcache: fix NULL pointer in cache_set_flush() 1. LINE#1794 - LINE#1887 is some codes about function of bch_cache_set_alloc(). 2. LINE#2078 - LINE#2142 is some codes about function of register_cache_set(). 3. register_cache_set() will call bch_cache_set_alloc() in LINE#2098. 1794 struct cache_set *bch_cache_set_alloc(struct cache_sb *sb) 1795 { ... 1860 if (!(c->devices = kcalloc(c->nr_uuids, sizeof(void *), GFP_KERNEL)) || 1861 mempool_init_slab_pool(&c->search, 32, bch_search_cache) || 1862 mempool_init_kmalloc_pool(&c->bio_meta, 2, 1863 sizeof(struct bbio) + sizeof(struct bio_vec) * 1864 bucket_pages(c)) || 1865 mempool_init_kmalloc_pool(&c->fill_iter, 1, iter_size) || 1866 bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio), 1867 BIOSET_NEED_BVECS|BIOSET_NEED_RESCUER) || 1868 !(c->uuids = alloc_bucket_pages(GFP_KERNEL, c)) || 1869 !(c->moving_gc_wq = alloc_workqueue("bcache_gc", 1870 WQ_MEM_RECLAIM, 0)) || 1871 bch_journal_alloc(c) || 1872 bch_btree_cache_alloc(c) || 1873 bch_open_buckets_alloc(c) || 1874 bch_bset_sort_state_init(&c->sort, ilog2(c->btree_pages))) 1875 goto err; ^^^^^^^^ 1876 ... 1883 return c; 1884 err: 1885 bch_cache_set_unregister(c); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1886 return NULL; 1887 } ... 2078 static const char *register_cache_set(struct cache *ca) 2079 { ... 2098 c = bch_cache_set_alloc(&ca->sb); 2099 if (!c) 2100 return err; ^^^^^^^^^^ ... 2128 ca->set = c; 2129 ca->set->cache[ca->sb.nr_this_dev] = ca; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 2138 return NULL; 2139 err: 2140 bch_cache_set_unregister(c); 2141 return err; 2142 } (1) If LINE#1860 - LINE#1874 is true, then do 'goto err'(LINE#1875) and call bch_cache_set_unregister()(LINE#1885). (2) As (1) return NULL(LINE#1886), LINE#2098 - LINE#2100 would return. (3) As (2) has returned, LINE#2128 - LINE#2129 would do *not* give the value to c->cache[], it means that c->cache[] is NULL. LINE#1624 - LINE#1665 is some codes about function of cache_set_flush(). As (1), in LINE#1885 call bch_cache_set_unregister() ---> bch_cache_set_stop() ---> closure_queue() -.-> cache_set_flush() (as below LINE#1624) 1624 static void cache_set_flush(struct closure *cl) 1625 { ... 1654 for_each_cache(ca, c, i) 1655 if (ca->alloc_thread) ^^ 1656 kthread_stop(ca->alloc_thread); ... 1665 } (4) In LINE#1655 ca is NULL(see (3)) in cache_set_flush() then the kernel crash occurred as below: [ 846.712887] bcache: register_cache() error drbd6: cannot allocate memory [ 846.713242] bcache: register_bcache() error : failed to register device [ 846.713336] bcache: cache_set_free() Cache set 2f84bdc1-498a-4f2f-98a7-01946bf54287 unregistered [ 846.713768] BUG: unable to handle kernel NULL pointer dereference at 00000000000009f8 [ 846.714790] PGD 0 P4D 0 [ 846.715129] Oops: 0000 [#1] SMP PTI [ 846.715472] CPU: 19 PID: 5057 Comm: kworker/19:16 Kdump: loaded Tainted: G OE --------- - - 4.18.0-147.5.1.el8_1.5es.3.x86_64 #1 [ 846.716082] Hardware name: ESPAN GI-25212/X11DPL-i, BIOS 2.1 06/15/2018 [ 846.716451] Workqueue: events cache_set_flush [bcache] [ 846.716808] RIP: 0010:cache_set_flush+0xc9/0x1b0 [bcache] [ 846.717155] Code: 00 4c 89 a5 b0 03 00 00 48 8b 85 68 f6 ff ff a8 08 0f 84 88 00 00 00 31 db 66 83 bd 3c f7 ff ff 00 48 8b 85 48 ff ff ff 74 28 <48> 8b b8 f8 09 00 0 ---truncated---

MediumCVSS 5.5 · v3.1—No exploit Fix available
Published
Jul 9, 2025
Updated
Jun 17, 2026
EPSS
0.1% · 7th percentile

Report tools

JSON

Action score

22

Monitor

Low priority for now.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.1%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2025-38263

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
linuxlinux kernel
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux11.0
  • linux linux kernel5.11 and later · before 5.15.187
  • linux linux kernel5.16 and later · before 6.1.143
  • linux linux kernel3.10 and later · before 5.10.240
  • linux linux kernel6.7 and later · before 6.12.36
  • linux linux kernel6.13 and later · before 6.15.5
  • linux linux kernel6.2 and later · before 6.6.96

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 3.10affected
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before d54681938b777488e5dfb781b566d16adad991deaffected · git
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before 1f25f2d3fa29325320c19a30abf787e0bd5fc91baffected · git
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before c4f5e7e417034b05f5d2f5fa9a872db897da69bdaffected · git
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before 553f560e0a74a7008ad9dba05c3fd05da296befbaffected · git
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before 667c3f52373ff5354cb3543e27237eb7df7b2333affected · git
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before 3f9e128186c99a117e304f1dce6d0b9e50c63cd8affected · git
    • cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and later · before 1e46ed947ec658f89f1a910d880cd05e42d3763eaffected · git
    • before 3.10not affected · semver
    • 5.10.240 and later · up to and including 5.10.*not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.147-16.1.147-1
Debian:13linuxbefore 6.12.37-16.12.37-1
SUSE:Linux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7_Update_5before 1-150700.15.3.11-150700.15.3.1
SUSE:Linux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7-RT_Update_5before 1-150700.1.3.11-150700.1.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-64kbbefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-defaultbefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-default-basebefore 6.4.0-150700.53.19.1.150700.17.13.16.4.0-150700.53.19.1.150700.17.13.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-sourcebefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7kernel-zfcpdumpbefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7kernel-docsbefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7kernel-obs-buildbefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7kernel-symsbefore 6.4.0-150700.53.19.16.4.0-150700.53.19.1
SUSE:Real Time Module 15 SP7kernel-rtbefore 6.4.0-150700.7.19.16.4.0-150700.7.19.1
SUSE:Real Time Module 15 SP7kernel-source-rtbefore 6.4.0-150700.7.19.16.4.0-150700.7.19.1
SUSE:Real Time Module 15 SP7kernel-syms-rtbefore 6.4.0-150700.7.19.16.4.0-150700.7.19.1

Other highest-scoring records for the same primary product.

  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now
  • CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV
    83Now

Published before and after this one in the same product

  • ← EarlierCVE-2025-38259Jul 9, 2025 · ASoC: codecs: wcd9335: Fix missing free of regulator supplies
    31Monitor
  • ← EarlierCVE-2025-38260Jul 9, 2025 · btrfs: handle csum tree error with rescue=ibadroots correctly
    22Monitor
  • Later →CVE-2025-38238Jul 9, 2025 · scsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux1e46ed947ec658f89f1a910d880cd05e42d3763eVendor (CNA)
Linux Linux1f25f2d3fa29325320c19a30abf787e0bd5fc91bVendor (CNA)
Linux Linux3f9e128186c99a117e304f1dce6d0b9e50c63cd8Vendor (CNA)
Linux Linux553f560e0a74a7008ad9dba05c3fd05da296befbVendor (CNA)
Linux Linux667c3f52373ff5354cb3543e27237eb7df7b2333Vendor (CNA)
Linux Linuxc4f5e7e417034b05f5d2f5fa9a872db897da69bdVendor (CNA)
Linux Linuxd54681938b777488e5dfb781b566d16adad991deVendor (CNA)
azl3 kernel 6.6.92.2-2 on Azure Linux 3.06.6.96.1-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
debian:linux6.1.147-1 · Debian:12Package registry (OSV)
suse:kernel-64kb6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)
suse:kernel-default6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)
suse:kernel-default-base6.4.0-150700.53.19.1.150700.17.13.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)
suse:kernel-docs6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7Package registry (OSV)
suse:kernel-livepatch-SLE15-SP7_Update_51-150700.15.3.1 · SUSE:Linux Enterprise Live Patching 15 SP7Package registry (OSV)
suse:kernel-livepatch-SLE15-SP7-RT_Update_51-150700.1.3.1 · SUSE:Linux Enterprise Live Patching 15 SP7Package registry (OSV)
suse:kernel-obs-build6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7Package registry (OSV)
suse:kernel-rt6.4.0-150700.7.19.1 · SUSE:Real Time Module 15 SP7Package registry (OSV)
suse:kernel-source6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)
suse:kernel-source-rt6.4.0-150700.7.19.1 · SUSE:Real Time Module 15 SP7Package registry (OSV)
suse:kernel-syms6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7Package registry (OSV)
suse:kernel-zfcpdump6.4.0-150700.53.19.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records