CVE-2024-26999
JSON

5.5medium

serial/pmac_zilog: Remove flawed mitigation for rx irq flood

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

Description

In the Linux kernel, the following vulnerability has been resolved: serial/pmac_zilog: Remove flawed mitigation for rx irq flood The mitigation was intended to stop the irq completely. That may be better than a hard lock-up but it turns out that you get a crash anyway if you're using pmac_zilog as a serial console: ttyPZ0: pmz: rx irq flood ! BUG: spinlock recursion on CPU#0, swapper/0 That's because the pr_err() call in pmz_receive_chars() results in pmz_console_write() attempting to lock a spinlock already locked in pmz_interrupt(). With CONFIG_DEBUG_SPINLOCK=y, this produces a fatal BUG splat. The spinlock in question is the one in struct uart_port. Even when it's not fatal, the serial port rx function ceases to work. Also, the iteration limit doesn't play nicely with QEMU, as can be seen in the bug report linked below. A web search for other reports of the error message "pmz: rx irq flood" didn't produce anything. So I don't think this code is needed any more. Remove it.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 69a02273e288011b521ee7c1f3ab2c23fda633ce, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d679c816929d62af51c8e6d7fc0e165c9412d2f3, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ab86cf6f8d24e63e9aca23da5108af1aa5483928, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7a3bbe41efa55323b6ea3c35fa15941d4dbecdef, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before bbaafbb4651fede8d3c3881601ecaa4f834f9d3f, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 52aaf1ff14622a04148dbb9ccce6d9de5d534ea7, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ca09dfc3cfdf89e6af3ac24e1c6c0be5c575a729, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1be3226445362bfbf461c92a5bcdb1723f2e4907 and 1 more
Not affected: before 2.6.12, from 4.19.313 up to 4.19.*, from 5.4.275 up to 5.4.*, from 5.10.216 up to 5.10.*, from 5.15.157 up to 5.15.*, from 6.1.88 up to 6.1.*
CVE List
linux linux_kernelfrom 2.6.12 before 5.15.157, from 5.16 before 6.1.88, from 6.2 before 6.6.29, from 6.7 before 6.8.8, 6.9NVD
debian debian_linux10.0NVD

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: serial/pmac_zilog: Remove flawed mitigation for rx irq flood The mitigation was intended to stop the irq completely. That may be better than a hard lock-up but it turns out that you get a crash anyway if you're using pmac_zilog as a serial console: ttyPZ0: pmz: rx irq flood ! BUG: spinlock recursion on CPU#0, swapper/0 That's because the pr_err() call in pmz_receive_chars() results in pmz_console_write() attempting to lock a spinlock already locked in pmz_interrupt(). With CONFIG_DEBUG_SPINLOCK=y, this produces a fatal BUG splat. The spinlock in question is the one in struct uart_port. Even when it's not fatal, the serial port rx function ceases to work. Also, the iteration limit doesn't play nicely with QEMU, as can be seen in the bug report linked below. A web search for other reports of the error message "pmz: rx irq flood" didn't produce anything. So I don't think this code is needed any more. Remove it.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: serial/pmac_zilog: eliminar la mitigación defectuosa para rx irq Flood La mitigación tenía como objetivo detener irq por completo. Esto puede ser mejor que un bloqueo duro, pero resulta que de todos modos se bloquea si estás usando pmac_zilog como consola serie: ttyPZ0: pmz: rx irq Flood ! ERROR: recursión de spinlock en CPU#0, swapper/0 Esto se debe a que la llamada pr_err() en pmz_receive_chars() da como resultado que pmz_console_write() intente bloquear un spinlock ya bloqueado en pmz_interrupt(). Con CONFIG_DEBUG_SPINLOCK=y, esto produce un error fatal. El spinlock en cuestión es el de la estructura uart_port. Incluso cuando no es fatal, la función de recepción del puerto serie deja de funcionar. Además, el límite de iteración no funciona bien con QEMU, como se puede ver en el informe de error vinculado a continuación. Una búsqueda en la web de otros informes del mensaje de error "pmz: rx irq Flood" no produjo nada. Así que no creo que este código ya sea necesario. Retírelo.

References

https://git.kernel.org/stable/c/69a02273e288011b521ee7c1f3ab2c23fda633cemailing-list, patch
https://git.kernel.org/stable/c/d679c816929d62af51c8e6d7fc0e165c9412d2f3mailing-list, patch
https://git.kernel.org/stable/c/ab86cf6f8d24e63e9aca23da5108af1aa5483928mailing-list, patch
https://git.kernel.org/stable/c/7a3bbe41efa55323b6ea3c35fa15941d4dbecdefmailing-list, patch
https://git.kernel.org/stable/c/bbaafbb4651fede8d3c3881601ecaa4f834f9d3fmailing-list, patch
https://git.kernel.org/stable/c/52aaf1ff14622a04148dbb9ccce6d9de5d534ea7mailing-list, patch
https://git.kernel.org/stable/c/ca09dfc3cfdf89e6af3ac24e1c6c0be5c575a729mailing-list, patch
https://git.kernel.org/stable/c/1be3226445362bfbf461c92a5bcdb1723f2e4907mailing-list, patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlmailing-list
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/

Sources

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