CVE-2026-23168
JSON

5.5medium

flex_proportions: make fprop_new_period() hardirq safe

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: flex_proportions: make fprop_new_period() hardirq safe Bernd has reported a lockdep splat from flexible proportions code that is essentially complaining about the following race: <timer fires> run_timer_softirq - we are in softirq context call_timer_fn writeout_period fprop_new_period write_seqcount_begin(&p->sequence); <hardirq is raised> ... blk_mq_end_request() blk_update_request() ext4_end_bio() folio_end_writeback() __wb_writeout_add() __fprop_add_percpu_max() if (unlikely(max_frac < FPROP_FRAC_BASE)) { fprop_fraction_percpu() seq = read_seqcount_begin(&p->sequence); - sees odd sequence so loops indefinitely Note that a deadlock like this is only possible if the bdi has configured maximum fraction of writeout throughput which is very rare in general but frequent for example for FUSE bdis. To fix this problem we have to make sure write section of the sequence counter is irqsafe.

Affected

Product or packageVersionsReported by
Linux Linuxfrom a91befde350375b1ff954635acdde14dc92cd9a8 before 0acc9ba7a1b5ba4d998c5753e709be904e179b75, from a91befde350375b1ff954635acdde14dc92cd9a8 before 884b2590ffcc7222cbbd6298051f4c243cc36f5d, from a91befde350375b1ff954635acdde14dc92cd9a8 before 78ede9ebd679dadf480dce6f7b798e3603f88348, from a91befde350375b1ff954635acdde14dc92cd9a8 before b91a84299d72ae0e05551e851e47cd3008bd025b, from a91befde350375b1ff954635acdde14dc92cd9a8 before dd9e2f5b38f1fdd49b1ab6d3a85f81c14369eacc, 6.0
Not affected: before 6.0, from 6.1.162 up to 6.1.*, from 6.6.123 up to 6.6.*, from 6.12.69 up to 6.12.*, from 6.18.9 up to 6.18.*, from 6.19 up to *
CVE List
linux linux_kernelfrom 6.0 before 6.1.162, from 6.2 before 6.6.123, from 6.7 before 6.12.69, from 6.13 before 6.18.9, 6.19NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: flex_proportions: make fprop_new_period() hardirq safe Bernd has reported a lockdep splat from flexible proportions code that is essentially complaining about the following race: <timer fires> run_timer_softirq - we are in softirq context call_timer_fn writeout_period fprop_new_period write_seqcount_begin(&p->sequence); <hardirq is raised> ... blk_mq_end_request() blk_update_request() ext4_end_bio() folio_end_writeback() __wb_writeout_add() __fprop_add_percpu_max() if (unlikely(max_frac < FPROP_FRAC_BASE)) { fprop_fraction_percpu() seq = read_seqcount_begin(&p->sequence); - sees odd sequence so loops indefinitely Note that a deadlock like this is only possible if the bdi has configured maximum fraction of writeout throughput which is very rare in general but frequent for example for FUSE bdis. To fix this problem we have to make sure write section of the sequence counter is irqsafe.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: flex_proportions: hacer que fprop_new_period() sea seguro para hardirq Bernd ha reportado un lockdep splat del código de proporciones flexibles que esencialmente se queja de la siguiente condición de carrera: run_timer_softirq - estamos en contexto de softirq call_timer_fn writeout_period fprop_new_period write_seqcount_begin(&amp;p-&gt;sequence); ... blk_mq_end_request() blk_update_request() ext4_end_bio() folio_end_writeback() __wb_writeout_add() __fprop_add_percpu_max() if (unlikely(max_frac &lt; FPROP_FRAC_BASE)) { fprop_fraction_percpu() seq = read_seqcount_begin(&amp;p-&gt;sequence); - ve una secuencia impar por lo que entra en un bucle indefinido Tenga en cuenta que un interbloqueo como este solo es posible si el bdi ha configurado una fracción máxima de rendimiento de escritura, lo cual es muy raro en general pero frecuente, por ejemplo, para bdis FUSE. Para solucionar este problema, tenemos que asegurarnos de que la sección de escritura del contador de secuencia sea irqsafe.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23168 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-23168 changed 2026-06-17Public domain