blk-cgroup: skip dying blkg in blkcg_activate_policy() (Linux Linux)

CVE-2026-90325
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: blk-cgroup: skip dying blkg in blkcg_activate_policy() When switching IO schedulers on a block device, blkcg_activate_policy() can race with concurrent blkcg deletion, leading to a use-after-free in rcu_accelerate_cbs. T1: T2: blkg_destroy kill(&blkg->refcnt) // blkg->refcnt=1->0 blkg_release // call_rcu(__blkg_release) ... blkg_free_workfn ->pd_free_fn(pd) elv_iosched_store elevator_switch ... iterate blkg list blkg_get(blkg) // blkg->refcnt=0->1 list_del_init(&blkg->q_node) blkg_put(pinned_blkg) // blkg->refcnt=1->0 blkg_release // call_rcu again rcu_accelerate_cbs // uaf Fix this by checking hlist_unhashed(&blkg->blkcg_node) before getting a reference to the blkg. This is the same check used in blkg_destroy() to detect if a blkg has already been destroyed. If the blkg is already unhashed, skip processing it since it's being destroyed.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 81c1188905f88b77743d1fdeeedfc8cb7b67787d < b5dae1cd0d8368b4338430ff93403df67f0b8bcc
affected : ≥ bfe46d2efe46c5c952f982e2ca94fe2ec5e58e2a < 083b58373463a6e5ee60ecb135269348f68ad7df
affected : ≥ f1c006f1c6850c14040f8337753a63119bba39b9 < 1a267295b1ea6a6477963f3fda84adfecd48fcad
affected : ≥ f1c006f1c6850c14040f8337753a63119bba39b9 < 7337d012ca3fc3a6a2d1c8e2a19c6d97c38b410d
affected : ≥ f1c006f1c6850c14040f8337753a63119bba39b9 < 3d8c3da95c75a4d312e272fc7b4076dd3ba9115c
affected : ≥ f1c006f1c6850c14040f8337753a63119bba39b9 < d8c872901e6459339374e9eea80aa919176c2ccd
affected : ≥ f1c006f1c6850c14040f8337753a63119bba39b9 < 5e9220389920f33b6a804d50c548cd0cd1b04634
affected : ≥ 6.1.16 < 6.1.17
affected : ≥ 6.2.3 < 6.2.4
Other versions : unaffected
Linux · Linux
affected : 6.3
unaffected : ≥ 0 < 6.3
unaffected : ≥ 6.1.17 ≤ 6.1.*
unaffected : ≥ 6.2.4 ≤ 6.2.*
unaffected : ≥ 6.6.157 ≤ 6.6.*
unaffected : ≥ 6.12.110 ≤ 6.12.*
unaffected : ≥ 6.18.52 ≤ 6.18.*
unaffected : ≥ 7.2.6 ≤ 7.2.*
unaffected : ≥ 7.3 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD