CVE-2024-35819
JSON

5.5medium

soc: fsl: qbman: Use raw spinlock for cgr_lock

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

Description

In the Linux kernel, the following vulnerability has been resolved: soc: fsl: qbman: Use raw spinlock for cgr_lock smp_call_function always runs its callback in hard IRQ context, even on PREEMPT_RT, where spinlocks can sleep. So we need to use a raw spinlock for cgr_lock to ensure we aren't waiting on a sleeping task. Although this bug has existed for a while, it was not apparent until commit ef2a8d5478b9 ("net: dpaa: Adjust queue depth on rate change") which invokes smp_call_function_single via qman_update_cgr_safe every time a link goes up or down.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 96f413f47677366e0ae03797409bfcc4151dbf9e before 2b3fede8225133671ce837c0d284804aa3bc7a02, from 96f413f47677366e0ae03797409bfcc4151dbf9e before ff50716b7d5b7985979a5b21163cd79fb3d21d59, from 96f413f47677366e0ae03797409bfcc4151dbf9e before 32edca2f03a6cc42c650ddc3ad83d086e3f365d1, from 96f413f47677366e0ae03797409bfcc4151dbf9e before 9a3ca8292ce9fdcce122706c28c3f07bc857fe5e, from 96f413f47677366e0ae03797409bfcc4151dbf9e before d6b5aac451c9cc12e43ab7308e0e2ddc52c62c14, from 96f413f47677366e0ae03797409bfcc4151dbf9e before 54d26adf64c04f186098b39dba86b86037084baa, from 96f413f47677366e0ae03797409bfcc4151dbf9e before f39d36b7540cf0088ed7ce2de2794f2aa237f6df, from 96f413f47677366e0ae03797409bfcc4151dbf9e before cd53a8ae5aacb4ecd25088486dea1cd02e74b506 and 8 more
Not affected: before 4.16, from 4.19.312 up to 4.19.*, from 5.4.274 up to 5.4.*, from 5.10.215 up to 5.10.*, from 5.15.154 up to 5.15.*, from 6.1.84 up to 6.1.*
CVE List
linux linux_kernelfrom 4.9.92 before 4.10, from 4.14.32 before 4.15, from 4.15.15 before 4.16, from 4.16.1 before 4.19.312, from 4.20 before 5.4.274, from 5.5 before 5.10.215, from 5.11 before 5.15.154, from 5.16 before 6.1.84 and 4 moreNVD
debian debian_linux10.0NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: soc: fsl: qbman: Use raw spinlock for cgr_lock smp_call_function always runs its callback in hard IRQ context, even on PREEMPT_RT, where spinlocks can sleep. So we need to use a raw spinlock for cgr_lock to ensure we aren't waiting on a sleeping task. Although this bug has existed for a while, it was not apparent until commit ef2a8d5478b9 ("net: dpaa: Adjust queue depth on rate change") which invokes smp_call_function_single via qman_update_cgr_safe every time a link goes up or down.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: soc: fsl: qbman: use spinlock sin formato para cgr_lock smp_call_function siempre ejecuta su devolución de llamada en un contexto IRQ duro, incluso en PREEMPT_RT, donde los spinlocks pueden dormir. Por lo tanto, necesitamos usar un spinlock sin formato para cgr_lock para asegurarnos de que no estamos esperando una tarea inactiva. Aunque este error ha existido por un tiempo, no fue evidente hasta la confirmación ef2a8d5478b9 ("net: dpaa: Ajustar la profundidad de la cola al cambiar la velocidad") que invoca smp_call_function_single a través de qman_update_cgr_safe cada vez que un enlace sube o baja.

References

https://git.kernel.org/stable/c/2b3fede8225133671ce837c0d284804aa3bc7a02patch
https://git.kernel.org/stable/c/ff50716b7d5b7985979a5b21163cd79fb3d21d59patch
https://git.kernel.org/stable/c/32edca2f03a6cc42c650ddc3ad83d086e3f365d1patch
https://git.kernel.org/stable/c/9a3ca8292ce9fdcce122706c28c3f07bc857fe5epatch
https://git.kernel.org/stable/c/d6b5aac451c9cc12e43ab7308e0e2ddc52c62c14patch
https://git.kernel.org/stable/c/54d26adf64c04f186098b39dba86b86037084baapatch
https://git.kernel.org/stable/c/f39d36b7540cf0088ed7ce2de2794f2aa237f6dfpatch
https://git.kernel.org/stable/c/cd53a8ae5aacb4ecd25088486dea1cd02e74b506patch
https://git.kernel.org/stable/c/fbec4e7fed89b579f2483041fabf9650fb0dd6bcpatch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlthird-party-advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlthird-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-35819 changed 2026-05-23CVE Terms of Use
NVDCVE-2024-35819 changed 2026-06-17Public domain