# CVE-2024-35819: soc: fsl: qbman: Use raw spinlock for cgr_lock

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-17T13:23:23.031Z
- Modified: 2026-06-17T07:35:28.637Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; from 96f413f47677366e0ae03797409bfcc4151dbf9e before fbec4e7fed89b579f2483041fabf9650fb0dd6bc; a85c525bbff4d7467d7f0ab6fed8e2f787b073d6; 29cd9c2d1f428c281962135ea046a9d7bda88d14; 5b10a404419f0532ef3ba990c12bebe118adb6d7; and 4 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.*; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 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; from 6.2 before 6.6.24; from 6.7 before 6.7.12; from 6.8 before 6.8.3; 4.16
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/2b3fede8225133671ce837c0d284804aa3bc7a02> (patch)
- <https://git.kernel.org/stable/c/ff50716b7d5b7985979a5b21163cd79fb3d21d59> (patch)
- <https://git.kernel.org/stable/c/32edca2f03a6cc42c650ddc3ad83d086e3f365d1> (patch)
- <https://git.kernel.org/stable/c/9a3ca8292ce9fdcce122706c28c3f07bc857fe5e> (patch)
- <https://git.kernel.org/stable/c/d6b5aac451c9cc12e43ab7308e0e2ddc52c62c14> (patch)
- <https://git.kernel.org/stable/c/54d26adf64c04f186098b39dba86b86037084baa> (patch)
- <https://git.kernel.org/stable/c/f39d36b7540cf0088ed7ce2de2794f2aa237f6df> (patch)
- <https://git.kernel.org/stable/c/cd53a8ae5aacb4ecd25088486dea1cd02e74b506> (patch)
- <https://git.kernel.org/stable/c/fbec4e7fed89b579f2483041fabf9650fb0dd6bc> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-35819](https://www.cve.org/CVERecord?id=CVE-2024-35819), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-35819](https://nvd.nist.gov/vuln/detail/CVE-2024-35819), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35819 · Whole record: https://cve.day/CVE-2024-35819.json · Rebuilt by cve.day 2026-11-25T22:58:40.525Z
