In the Linux kernel, the following vulnerability has been resolved:
serial: 8250_port: Check IRQ data before use
In case the leaf driver wants to use IRQ polling (irq = 0) and IIR register shows that an interrupt happened in the 8250 hardware the IRQ data can be NULL. In such a case we need to skip the wake event as we came to this path from the timer interrupt and quite likely system is already awake.
Without this fix we have got an Oops:
serial8250: ttyS0 at I/O 0x3f8 (irq = 0, base_baud = 115200) is a 16550A
...
BUG: kernel NULL pointer dereference, address: 0000000000000010
RIP: 0010:serial8250_handle_irq+0x7c/0x240
Call Trace:
? serial8250_handle_irq+0x7c/0x240
? __pfx_serial8250_timeout+0x10/0x10
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52567.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52567.json"
[
{
"id": "CVE-2023-52567-0611e61b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c334650150c29234b0923476f51573ae1b2f252a",
"deprecated": false
},
{
"id": "CVE-2023-52567-0828987e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee5732caaffba3a37e753fdb89b4958db9a61847",
"deprecated": false
},
{
"id": "CVE-2023-52567-08f767d7",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3345cc5f02f1fb4c4dcb114706f2210d879ab933",
"deprecated": false
},
{
"id": "CVE-2023-52567-0cb14afc",
"digest": {
"length": 902.0,
"function_hash": "252584941157907372736392140032063844166"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e14afa4450cb7e4cf93e993a765801203d41d014",
"deprecated": false
},
{
"id": "CVE-2023-52567-1194fb3f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf3c728e3692cc6d998874f0f27d433117348742",
"deprecated": false
},
{
"id": "CVE-2023-52567-14489236",
"digest": {
"length": 902.0,
"function_hash": "252584941157907372736392140032063844166"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf3c728e3692cc6d998874f0f27d433117348742",
"deprecated": false
},
{
"id": "CVE-2023-52567-32353fac",
"digest": {
"length": 942.0,
"function_hash": "155425347154943131225043353024704539407"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3345cc5f02f1fb4c4dcb114706f2210d879ab933",
"deprecated": false
},
{
"id": "CVE-2023-52567-45cc0b7d",
"digest": {
"length": 912.0,
"function_hash": "244676300459456727781946437783137123098"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c334650150c29234b0923476f51573ae1b2f252a",
"deprecated": false
},
{
"id": "CVE-2023-52567-5b593a25",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e14afa4450cb7e4cf93e993a765801203d41d014",
"deprecated": false
},
{
"id": "CVE-2023-52567-779fb122",
"digest": {
"length": 942.0,
"function_hash": "155425347154943131225043353024704539407"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cce7fc8b29961b64fadb1ce398dc5ff32a79643b",
"deprecated": false
},
{
"id": "CVE-2023-52567-7b031566",
"digest": {
"length": 912.0,
"function_hash": "244676300459456727781946437783137123098"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee5732caaffba3a37e753fdb89b4958db9a61847",
"deprecated": false
},
{
"id": "CVE-2023-52567-86ee01ae",
"digest": {
"length": 942.0,
"function_hash": "155425347154943131225043353024704539407"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e14f68a48fd445a083ac0750fafcb064df5f18f7",
"deprecated": false
},
{
"id": "CVE-2023-52567-8fc4789e",
"digest": {
"length": 902.0,
"function_hash": "280092695390748244356516432161974351342"
},
"signature_type": "Function",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c",
"function": "serial8250_handle_irq"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b837f13a818f96304736453ac53b66a70aaa4f2",
"deprecated": false
},
{
"id": "CVE-2023-52567-a4ac4b5f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b837f13a818f96304736453ac53b66a70aaa4f2",
"deprecated": false
},
{
"id": "CVE-2023-52567-b51f1afe",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e14f68a48fd445a083ac0750fafcb064df5f18f7",
"deprecated": false
},
{
"id": "CVE-2023-52567-ff579532",
"digest": {
"threshold": 0.9,
"line_hashes": [
"221345977456262261149537500637913156399",
"196760323824277130811988245635531126678",
"248454794989035135426588756675071991798",
"5216481877600009315440470754344967310"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/tty/serial/8250/8250_port.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cce7fc8b29961b64fadb1ce398dc5ff32a79643b",
"deprecated": false
}
]