serial: 8250_port: Check IRQ data before use (Linux Linux)

CVE-2023-52567
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected edfe57aedff4ecf3606533aabf8ecf7676c3c5d9 < ee5732caaffba3a37e753fdb89b4958db9a61847 ; affected 0bd49a043c7984c93c2a0af41222fb71c3986a4e < c334650150c29234b0923476f51573ae1b2f252a ; affected 572d48361aa0a6e6f16c1470e5407de183493d0c < bf3c728e3692cc6d998874f0f27d433117348742 ; affected d5d628fea5f6181809a9d61b04de6ade53277684 < e14afa4450cb7e4cf93e993a765801203d41d014 ; affected 424cf29296354d7b9c6c038aaa7bb71782100851 < 2b837f13a818f96304736453ac53b66a70aaa4f2 ; affected 727e92fe13e81c6088a88d83e466b2b1b553c4e3 < e14f68a48fd445a083ac0750fafcb064df5f18f7
Linux · Linuxaffected 6.4 ; unaffected 0 < 6.4 ; unaffected 4.14.327 ≤ 4.14.* ; unaffected 4.19.296 ≤ 4.19.* ; unaffected 5.4.258 ≤ 5.4.* ; unaffected 5.10.198 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD