HighCVE-2026-31586

    Linux Kernel: Use-After-Free (CVE-2026-31586)

    Published Last modified Sources: Debian, Ubuntu, Debian LTS, SUSE, Siemens ProductCERT, BSI, CVE.org, Msrc Update Guide, EUVD

    What is affected, what to do

    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.

    Update Linux Kernel to version 5.10.258, Linux Kernel to version 5.15.209, Linux Kernel to version 6.1.175.

    Affected
    • Linux Kernel lt 4.19..5.10.258
    • Linux Kernel lt 5.11..5.15.209
    • Linux Kernel lt 5.16..6.1.175
    • Linux Kernel lt 6.2..6.6.136
    • Linux Kernel lt 6.7..6.12.83
    • Linux Kernel lt 6.13..6.18.24
    • Linux Kernel lt 6.19..6.19.14
    • Linux Kernel lt 6.20..7.0.1
    Fixed in
    • Linux Kernel 5.10.258
    • Linux Kernel 5.15.209
    • Linux Kernel 6.1.175
    • Linux Kernel 6.6.136
    • Linux Kernel 6.12.83
    • Linux Kernel 6.18.24
    • Linux Kernel 6.19.14
    • Linux Kernel 7.0.1
    • Linux Kernel 7.1

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: Vendor (CNA), CVSS v3

    7.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: Debian, Ubuntu, Debian LTS, SUSE, Siemens ProductCERT, BSI, CVE.org, Msrc Update Guide, EUVD

    0.1 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 2.7

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    55.67 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.1 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    2.7
    Low — this CVE sits in the lower 10% of all CVEs scored today.
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CISA assessment (SSVC)
    Exploitation: none known · not automatable · Technical impact: total
    Source: CISA Vulnrichment, as of 16 October 2026
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-416

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    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.

    Source: Debian Security Advisories, Ubuntu Security Notices, Debian LTS Advisories, suse_csaf, siemens_advisory, BSI WID Portal, BSI CSAF, NVD (NIST), Microsoft Security Update Guide, CVE.org (MITRE), cvelistv5, ENISA EUVD

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    LinuxLinux
    • 5.16 – < 6.1.175
    • 6.2 – < 6.6.136
    • 6.19 – < 6.19.14
    • 4.19 – < 5.10.258
    • 5.11 – < 5.15.209
    • 6.13 – < 6.18.24
    • —
    • 6.7 – < 6.12.83
    • 6.20 – < 7.0.1
    • 6.1.175
    • 6.6.136
    • 6.19.14
    • 5.10.258
    • 5.15.209
    • 6.18.24
    • 7.1
    • 6.12.83
    • 7.0.1
    SiemensSIMATIC S7
    • 1500 TM MFP V1.1.1 GNU/Linux subsystem
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxdebianlinuxbookworm
    Linuxdebianlinuxbullseye
    Linuxdebianlinuxtrixie
    Linuxdebianlinux-6.1bullseye
    Linuxlinuxlinux_kernel—

    Weakness classes (CWE)

    • CWE-416Use After Free

      Variant

      The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

      Entry at MITRE CWE-416

    References & sources

    Changes to this CVE

    Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).

    1. Record modifiedCISA ADP

      Weakness type: CWE-416

      Show the original change
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Weakness type (CWE)added
      —
      CWE-416

      Source identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0

    2. Record modifiedCISA ADP

      CISA assessment (SSVC): exploitation: none known, automatable: no

      Show the original change
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      SSVC assessmentadded
      —
      {"id":"CVE-2026-31586","role":"CISA Coordinator","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:10:59.894304Z"}

      Source identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0

    3. Record modifiedLinux

      Show 24 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      https://git.kernel.org/stable/c/115a5266749dcde7fe4127e8623d19c752088f69
      Referenceadded
      —
      https://git.kernel.org/stable/c/1bd36e93b542d9dd020190c6607c6a3663405195
      Referenceadded
      —
      https://git.kernel.org/stable/c/23acef4156c260e8598397a1a2e8b3a23e919893
      Referenceadded
      —
      https://git.kernel.org/stable/c/50879a3c1faf06e661090015d59e2127255cff27
      Referenceadded
      —
      https://git.kernel.org/stable/c/67cb119d32f35e32acd0393bbeb318b2bb1fdafe
      Referenceadded
      —
      https://git.kernel.org/stable/c/740ba1ebb223f137ff088ab74d533a13f9167bd8
      Referenceadded
      —
      https://git.kernel.org/stable/c/8f5857be99f1ed1fa80991c72449541f634626ee
      Referenceadded
      —
      https://git.kernel.org/stable/c/dfc8292a1d6782c76b626315605e0585a5a18447
      Referenceadded
      —
      https://git.kernel.org/stable/c/ea3af09eb87d8f8708c66747fcf1a2762902e839
      Referenceremoved
      https://git.kernel.org/stable/c/115a5266749dcde7fe4127e8623d19c752088f69
      —
      Referenceremoved
      https://git.kernel.org/stable/c/1bd36e93b542d9dd020190c6607c6a3663405195
      —
      Referenceremoved
      https://git.kernel.org/stable/c/23acef4156c260e8598397a1a2e8b3a23e919893
      —
      Referenceremoved
      https://git.kernel.org/stable/c/50879a3c1faf06e661090015d59e2127255cff27
      —
      Referenceremoved
      https://git.kernel.org/stable/c/67cb119d32f35e32acd0393bbeb318b2bb1fdafe
      —
      Referenceremoved
      https://git.kernel.org/stable/c/740ba1ebb223f137ff088ab74d533a13f9167bd8
      —
      Referenceremoved
      https://git.kernel.org/stable/c/8f5857be99f1ed1fa80991c72449541f634626ee
      —
      Referenceremoved
      https://git.kernel.org/stable/c/dfc8292a1d6782c76b626315605e0585a5a18447
      —
      Referenceremoved
      https://git.kernel.org/stable/c/ea3af09eb87d8f8708c66747fcf1a2762902e839
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/115a5266749dcde7fe4127e8623d19c752088f69 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/50879a3c1faf06e661090015d59e2127255cff27 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/67cb119d32f35e32acd0393bbeb318b2bb1fdafe Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/8f5857be99f1ed1fa80991c72449541f634626ee Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/dfc8292a1d6782c76b626315605e0585a5a18447 Types: Patch
      —
      Reference typeremoved
      https://git.kernel.org/stable/c/ea3af09eb87d8f8708c66747fcf1a2762902e839 Types: Patch
      —

      Source identifier: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    4. Record modifiedSiemens ADP

      Show 2 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Affected versions (publisher)added
      —
      New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/31xxx/CVE-2026-31586.json">CVE-2026-31586</a>
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-784472.html

      Source identifier: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2026-31586
    <a href="https://intel.neosec.eu/en/cve/CVE-2026-31586"><img src="https://intel.neosec.eu/badge/cve/CVE-2026-31586.svg?lang=en" alt="CVE-2026-31586 – NEOSEC Intel" height="20"></a>