vfio/fsl-mc: Block calling interrupt handler without trigger (Linux Linux)

CVE-2024-26814
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: vfio/fsl-mc: Block calling interrupt handler without trigger The eventfd_ctx trigger pointer of the vfio_fsl_mc_irq object is initially NULL and may become NULL if the user sets the trigger eventfd to -1. The interrupt handler itself is guaranteed that trigger is always valid between request_irq() and free_irq(), but the loopback testing mechanisms to invoke the handler function need to test the trigger. The triggering and setting ioctl paths both make use of igate and are therefore mutually exclusive. The vfio-fsl-mc driver does not make use of irqfds, nor does it support any sort of masking operations, therefore unlike vfio-pci and vfio-platform, the flow can remain essentially unchanged.

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 cc0ee20bd96971c10eba9a83ecf1c0733078a083 < a563fc18583ca4f42e2fdd0c70c7c618288e7ede ; affected cc0ee20bd96971c10eba9a83ecf1c0733078a083 < 250219c6a556f8c69c5910fca05a59037e24147d ; affected cc0ee20bd96971c10eba9a83ecf1c0733078a083 < 083e750c9f5f4c3bf61161330fb84d7c8e8bb417 ; affected cc0ee20bd96971c10eba9a83ecf1c0733078a083 < ee0bd4ad780dfbb60355b99f25063357ab488267 ; affected cc0ee20bd96971c10eba9a83ecf1c0733078a083 < de87511fb0404d23b6da5f4660383b6ed095e28d ; affected cc0ee20bd96971c10eba9a83ecf1c0733078a083 < 6ec0d88166dac43f29e96801c0927d514f17add9
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 5.10.215 ≤ 5.10.* ; unaffected 5.15.154 ≤ 5.15.* ; unaffected 6.1.84 ≤ 6.1.* ; unaffected 6.6.24 ≤ 6.6.*

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