{"id":"CVE-2024-42253","published":"2024-08-08T08:46:29Z","modified":"2026-08-05T11:36:05Z","title":"gpio: pca953x: fix pca953x_irq_bus_sync_unlock race","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: pca953x: fix pca953x_irq_bus_sync_unlock race\n\nEnsure that `i2c_lock' is held when setting interrupt latch and mask in\npca953x_irq_bus_sync_unlock() in order to avoid races.\n\nThe other (non-probe) call site pca953x_gpio_set_multiple() ensures the\nlock is held before calling pca953x_write_regs().\n\nThe problem occurred when a request raced against irq_bus_sync_unlock()\napproximately once per thousand reboots on an i.MX8MP based system.\n\n * Normal case\n\n   0-0022: write register AI|3a {03,02,00,00,01} Input latch P0\n   0-0022: write register AI|49 {fc,fd,ff,ff,fe} Interrupt mask P0\n   0-0022: write register AI|08 {ff,00,00,00,00} Output P3\n   0-0022: write register AI|12 {fc,00,00,00,00} Config P3\n\n * Race case\n\n   0-0022: write register AI|08 {ff,00,00,00,00} Output P3\n   0-0022: write register AI|08 {03,02,00,00,01} *** Wrong register ***\n   0-0022: write register AI|12 {fc,00,00,00,00} Config P3\n   0-0022: write register AI|49 {fc,fd,ff,ff,fe} Interrupt mask P0","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00173,"percentile":0.06904,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/58a5c93bd1a6e949267400080f07e57ffe05ec34","tags":[]},{"url":"https://git.kernel.org/stable/c/e2ecdddca80dd845df42376e4b0197fe97018ba2","tags":[]},{"url":"https://git.kernel.org/stable/c/de7cffa53149c7b48bd1bb29b02390c9f05b7f41","tags":[]},{"url":"https://git.kernel.org/stable/c/bfc6444b57dc7186b6acc964705d7516cbaf3904","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.38},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 44896beae605b93f2232301befccb7ef42953198, < 58a5c93bd1a6e949267400080f07e57ffe05ec34",">= 44896beae605b93f2232301befccb7ef42953198, < e2ecdddca80dd845df42376e4b0197fe97018ba2",">= 44896beae605b93f2232301befccb7ef42953198, < de7cffa53149c7b48bd1bb29b02390c9f05b7f41",">= 44896beae605b93f2232301befccb7ef42953198, < bfc6444b57dc7186b6acc964705d7516cbaf3904"]},{"vendor":"Linux","product":"Linux","versions":["4.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:13:09.580370Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39476","exploited":false,"provenance":"source"}}