CVE-2024-38780
JSON

5.5medium

dma-buf/sw-sync: don't enable IRQ from sync_print_obj()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.25% (higher than 10% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: dma-buf/sw-sync: don't enable IRQ from sync_print_obj() Since commit a6aa8fca4d79 ("dma-buf/sw-sync: Reduce irqsave/irqrestore from known context") by error replaced spin_unlock_irqrestore() with spin_unlock_irq() for both sync_debugfs_show() and sync_print_obj() despite sync_print_obj() is called from sync_debugfs_show(), lockdep complains inconsistent lock state warning. Use plain spin_{lock,unlock}() for sync_print_obj(), for sync_debugfs_show() is already using spin_{lock,unlock}_irq().

Affected

Product or packageVersionsReported by
Linux Linuxfrom a6aa8fca4d792c72947e341d7842d2f700534335 before 1ff116f68560a25656933d5a18e7619cb6773d8a, from a6aa8fca4d792c72947e341d7842d2f700534335 before 165b25e3ee9333f7b04f8db43895beacb51582ed, from a6aa8fca4d792c72947e341d7842d2f700534335 before ae6fc4e6a3322f6d1c8ff59150d8469487a73dd8, from a6aa8fca4d792c72947e341d7842d2f700534335 before 9d75fab2c14a25553a1664586ed122c316bd1878, from a6aa8fca4d792c72947e341d7842d2f700534335 before 242b30466879e6defa521573c27e12018276c33a, from a6aa8fca4d792c72947e341d7842d2f700534335 before a4ee78244445ab73af22bfc5a5fc543963b25aef, from a6aa8fca4d792c72947e341d7842d2f700534335 before 8a283cdfc8beeb14024387a925247b563d614e1e, from a6aa8fca4d792c72947e341d7842d2f700534335 before b794918961516f667b0c745aebdfebbb8a98df39 and 3 more
Not affected: before 4.14, from 4.19.316 up to 4.19.*, from 5.4.278 up to 5.4.*, from 5.10.219 up to 5.10.*, from 5.15.161 up to 5.15.*, from 6.1.93 up to 6.1.*
CVE List
linux linux_kernelbefore 4.14, from 4.19 before 4.19.316, from 5.4 before 5.4.278, from 5.10 before 5.10.219, from 5.15 before 5.15.161, from 6.1 before 6.1.93, from 6.6 before 6.6.33, from 6.9 before 6.9.4 and 1 moreNVD

Classification

CWE-667

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: dma-buf/sw-sync: don't enable IRQ from sync_print_obj() Since commit a6aa8fca4d79 ("dma-buf/sw-sync: Reduce irqsave/irqrestore from known context") by error replaced spin_unlock_irqrestore() with spin_unlock_irq() for both sync_debugfs_show() and sync_print_obj() despite sync_print_obj() is called from sync_debugfs_show(), lockdep complains inconsistent lock state warning. Use plain spin_{lock,unlock}() for sync_print_obj(), for sync_debugfs_show() is already using spin_{lock,unlock}_irq().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: dma-buf/sw-sync: no habilitar IRQ desde sync_print_obj() Desde el commit a6aa8fca4d79 ("dma-buf/sw-sync: reducir irqsave/irqrestore desde el contexto conocido" ) por error reemplazó spin_unlock_irqrestore() con spin_unlock_irq() tanto para sync_debugfs_show() como para sync_print_obj() a pesar de que sync_print_obj() se llama desde sync_debugfs_show(), lockdep se queja de una advertencia de estado de bloqueo inconsistente. Utilice spin_{lock,unlock}() simple para sync_print_obj(), ya que sync_debugfs_show() ya está usando spin_{lock,unlock}_irq().

References

https://git.kernel.org/stable/c/1ff116f68560a25656933d5a18e7619cb6773d8amailing-list, patch
https://git.kernel.org/stable/c/165b25e3ee9333f7b04f8db43895beacb51582edmailing-list, patch
https://git.kernel.org/stable/c/ae6fc4e6a3322f6d1c8ff59150d8469487a73dd8mailing-list, patch
https://git.kernel.org/stable/c/9d75fab2c14a25553a1664586ed122c316bd1878mailing-list, patch
https://git.kernel.org/stable/c/242b30466879e6defa521573c27e12018276c33amailing-list, patch
https://git.kernel.org/stable/c/a4ee78244445ab73af22bfc5a5fc543963b25aefmailing-list, patch
https://git.kernel.org/stable/c/8a283cdfc8beeb14024387a925247b563d614e1emailing-list, patch
https://git.kernel.org/stable/c/b794918961516f667b0c745aebdfebbb8a98df39mailing-list, patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-613116.html

Sources

SourceRecordLicence
CVE ListCVE-2024-38780 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-38780 changed 2026-10-15Public domain