Not scored
tty: serial: imx: disable Ageing Timer interrupt request irq
- Severity
- Not scored
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tty: serial: imx: disable Ageing Timer interrupt request irq There maybe pending USR interrupt before requesting irq, however uart_add_one_port has not executed, so there will be kernel panic: [ 0.795668] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000080 [ 0.802701] Mem abort info: [ 0.805367] ESR = 0x0000000096000004 [ 0.808950] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.814033] SET = 0, FnV = 0 [ 0.816950] EA = 0, S1PTW = 0 [ 0.819950] FSC = 0x04: level 0 translation fault [ 0.824617] Data abort info: [ 0.827367] ISV = 0, ISS = 0x00000004 [ 0.831033] CM = 0, WnR = 0 [ 0.833866] [0000000000000080] user address but active_mm is swapper [ 0.839951] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP [ 0.845953] Modules linked in: [ 0.848869] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.1+g56321e101aca #1 [ 0.855617] Hardware name: Freescale i.MX8MP EVK (DT) [ 0.860452] pstate: 000000c5 (nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 0.867117] pc : __imx_uart_rxint.constprop.0+0x11c/0x2c0 [ 0.872283] lr : imx_uart_int+0xf8/0x1ec The issue only happends in the inmate linux when Jailhouse hypervisor enabled. The test procedure is: while true; do jailhouse enable imx8mp.cell jailhouse cell linux xxxx sleep 10 jailhouse cell destroy 1 jailhouse disable sleep 5 done And during the upper test, press keys to the 2nd linux console. When `jailhouse cell destroy 1`, the 2nd linux has no chance to put the uart to a quiese state, so USR1/2 may has pending interrupts. Then when `jailhosue cell linux xx` to start 2nd linux again, the issue trigger. In order to disable irqs before requesting them, both UCR1 and UCR2 irqs should be disabled, so here fix that, disable the Ageing Timer interrupt in UCR2 as UCR1 does.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8a61f0c70ae65c6b70d13228c3120c73d7425a60 before 3d41d9b256ae626c0dc434427c8e32450358d3b4, from 8a61f0c70ae65c6b70d13228c3120c73d7425a60 before 9795ece3a85ba9238191e97665586e2d79703ff3, from 8a61f0c70ae65c6b70d13228c3120c73d7425a60 before 963875b0655197281775b0ea614aab8b6b3eb001, from 8a61f0c70ae65c6b70d13228c3120c73d7425a60 before ef25e16ea9674b713a68c3bda821556ce9901254, 4.3 Not affected: before 4.3, from 5.15.99 up to 5.15.*, from 6.1.16 up to 6.1.*, from 6.2.3 up to 6.2.*, from 6.3 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: tty: serial: imx: disable Ageing Timer interrupt request irq There maybe pending USR interrupt before requesting irq, however uart_add_one_port has not executed, so there will be kernel panic: [ 0.795668] Unable to handle kernel NULL pointer dereference at virtual addre ss 0000000000000080 [ 0.802701] Mem abort info: [ 0.805367] ESR = 0x0000000096000004 [ 0.808950] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.814033] SET = 0, FnV = 0 [ 0.816950] EA = 0, S1PTW = 0 [ 0.819950] FSC = 0x04: level 0 translation fault [ 0.824617] Data abort info: [ 0.827367] ISV = 0, ISS = 0x00000004 [ 0.831033] CM = 0, WnR = 0 [ 0.833866] [0000000000000080] user address but active_mm is swapper [ 0.839951] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP [ 0.845953] Modules linked in: [ 0.848869] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.1+g56321e101aca #1 [ 0.855617] Hardware name: Freescale i.MX8MP EVK (DT) [ 0.860452] pstate: 000000c5 (nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 0.867117] pc : __imx_uart_rxint.constprop.0+0x11c/0x2c0 [ 0.872283] lr : imx_uart_int+0xf8/0x1ec The issue only happends in the inmate linux when Jailhouse hypervisor enabled. The test procedure is: while true; do jailhouse enable imx8mp.cell jailhouse cell linux xxxx sleep 10 jailhouse cell destroy 1 jailhouse disable sleep 5 done And during the upper test, press keys to the 2nd linux console. When `jailhouse cell destroy 1`, the 2nd linux has no chance to put the uart to a quiese state, so USR1/2 may has pending interrupts. Then when `jailhosue cell linux xx` to start 2nd linux again, the issue trigger. In order to disable irqs before requesting them, both UCR1 and UCR2 irqs should be disabled, so here fix that, disable the Ageing Timer interrupt in UCR2 as UCR1 does.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: tty: serial: imx: deshabilitar la solicitud de interrupción irq del temporizador de envejecimiento Puede haber una interrupción USR pendiente antes de solicitar irq, sin embargo, uart_add_one_port no se ha ejecutado, por lo que habrá un pánico del kernel: [ 0.795668] Incapaz de manejar la desreferencia de puntero NULL del kernel en la dirección virtual 0000000000000080 [ 0.802701] Información de aborto de memoria: [ 0.805367] ESR = 0x0000000096000004 [ 0.808950] EC = 0x25: DABT (EL actual), IL = 32 bits [ 0.814033] SET = 0, FnV = 0 [ 0.816950] EA = 0, S1PTW = 0 [ 0.819950] FSC = 0x04: fallo de traducción de nivel 0 [ 0.824617] Información de aborto de datos: [ 0.827367] ISV = 0, ISS = 0x00000004 [ 0.831033] CM = 0, WnR = 0 [ 0.833866] [0000000000000080] dirección de usuario pero active_mm es swapper [ 0.839951] Error interno: Oops: 0000000096000004 [#1] PREEMPT SMP [ 0.845953] Módulos enlazados: [ 0.848869] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.1+g56321e101aca #1 [ 0.855617] Nombre del hardware: Freescale i.MX8MP EVK (DT) [ 0.860452] pstate: 000000c5 (nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 0.867117] pc : __imx_uart_rxint.constprop.0+0x11c/0x2c0 [ 0.872283] lr : imx_uart_int+0xf8/0x1ec El problema solo ocurre en el linux 'inmate' cuando el hipervisor Jailhouse está habilitado. El procedimiento de prueba es: while true; do jailhouse enable imx8mp.cell jailhouse cell linux xxxx sleep 10 jailhouse cell destroy 1 jailhouse disable sleep 5 done Y durante la prueba anterior, presione teclas en la segunda consola de linux. Cuando 'jailhouse cell destroy 1', el segundo linux no tiene oportunidad de poner el uart en un estado de reposo, por lo que USR1/2 puede tener interrupciones pendientes. Luego, cuando 'jailhosue cell linux xx' para iniciar el segundo linux nuevamente, el problema se activa. Para deshabilitar las irqs antes de solicitarlas, tanto las irqs de UCR1 como las de UCR2 deben deshabilitarse, así que aquí se corrige eso, deshabilitando la interrupción del temporizador de envejecimiento en UCR2 como lo hace UCR1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54287 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54287 changed 2026-06-17 | Public domain |