7.8

CVE-2026-31586: mm: blk-cgroup: fix use-after-free in cgwb_release_workfn()

Modified
AliasesUBUNTU-CVE-2026-31586DEBIAN-CVE-2026-31586CGA-37c9-8g8q-c94c
Published 24-04-2026Last modified 19-10-2026

Vulnerability summary

CVE-2026-31586 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.13%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 154 · Related 154
LSN-0122-1OPENSUSE-SU-2026:10703-1SUSE-SU-2026:21834-1SUSE-SU-2026:2195-1SUSE-SU-2026:2238-1SUSE-SU-2026:22598-1

Showing 100 of 155.

Timeline

  1. 24-04-2026
    PublishedVulnerability first disclosed.
  2. 19-10-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: mm: blk-cgroup: fix use-after-free in cgwb_release_workfn() cgwb_release_workfn() calls css_put(wb->blkcg_css) and then later accesses wb->blkcg_css again via blkcg_unpin_online(). If css_put() drops the last reference, the blkcg can be freed asynchronously (css_free_rwork_fn -> blkcg_css_free -> kfree) before blkcg_unpin_online() dereferences the pointer to access blkcg->online_pin, resulting in a use-after-free: BUG: KASAN: slab-use-after-free in blkcg_unpin_online (./include/linux/instrumented.h:112 ./include/linux/atomic/atomic-instrumented.h:400 ./include/linux/refcount.h:389 ./include/linux/refcount.h:432 ./include/linux/refcount.h:450 block/blk-cgroup.c:1367) Write of size 4 at addr ff11000117aa6160 by task kworker/71:1/531 Workqueue: cgwb_release cgwb_release_workfn Call Trace: <TASK> blkcg_unpin_online (./include/linux/instrumented.h:112 ./include/linux/atomic/atomic-instrumented.h:400 ./include/linux/refcount.h:389 ./include/linux/refcount.h:432 ./include/linux/refcount.h:450 block/blk-cgroup.c:1367) cgwb_release_workfn (mm/backing-dev.c:629) process_scheduled_works (kernel/workqueue.c:3278 kernel/workqueue.c:3385) Freed by task 1016: kfree (./include/linux/kasan.h:235 mm/slub.c:2689 mm/slub.c:6246 mm/slub.c:6561) css_free_rwork_fn (kernel/cgroup/cgroup.c:5542) process_scheduled_works (kernel/workqueue.c:3302 kernel/workqueue.c:3385) ** Stack based on commit 66672af7a095 ("Add linux-next specific files for 20260410") I am seeing this crash sporadically in Meta fleet across multiple kernel versions. A full reproducer is available at: https://github.com/leitao/debug/blob/main/reproducers/repro_blkcg_uaf.sh (The race window is narrow. To make it easily reproducible, inject a msleep(100) between css_put() and blkcg_unpin_online() in cgwb_release_workfn(). With that delay and a KASAN-enabled kernel, the reproducer triggers the splat reliably in less than a second.) Fix this by moving blkcg_unpin_online() before css_put(), so the cgwb's CSS reference keeps the blkcg alive while blkcg_unpin_online() accesses it.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.13%

Chance of exploitation in the next 30 days

Percentile

3%

Versus all other CVEs

30-day change

Decrease -0.04 pp

From 0.17% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu154 products
  • linuxAll versions (No fix recorded) | < 5.15.0-186.196 | < 6.8.0-136.136 | < 7.0.0-27.27
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1112.119 | < 6.8.0-1061.64 | < 7.0.0-1008.8
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Chainguard9 products
  • linux-aws-6.12< 6.12.85-r0
  • linux-aws-6.18< 6.18.31-r0
  • linux-azure-6.18< 6.18.31-r0
  • linux-gcp-6.18< 6.18.31-r0
  • linux-qemu-6.12< 6.12.85-r0
Linux2 products
  • linux≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 23acef4156c260e8598397a1a2e8b3a23e919893 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 1bd36e93b542d9dd020190c6607c6a3663405195 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 740ba1ebb223f137ff088ab74d533a13f9167bd8 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 115a5266749dcde7fe4127e8623d19c752088f69 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < dfc8292a1d6782c76b626315605e0585a5a18447 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < ea3af09eb87d8f8708c66747fcf1a2762902e839 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 50879a3c1faf06e661090015d59e2127255cff27 | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 67cb119d32f35e32acd0393bbeb318b2bb1fdafe | ≥ 59b57717fff8b562825d9d25e0180ad7e8048ca9, < 8f5857be99f1ed1fa80991c72449541f634626ee | 4.19
  • linux_kernel≥ 4.19, < 6.6.136 | ≥ 6.7, < 6.12.83 | ≥ 6.13, < 6.18.24 | ≥ 6.19, < 6.19.14 | ≥ 7.0, < 7.0.1
Debian1 product
  • linux< 6.1.176-1 | < 6.12.85-1 | < 6.19.14-1

4 vendors · 166 products

References

49 links
Show all 49 references