CVE-2026-43319
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2026
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
spi: spidev: fix lock inversion between spi_lock and buf_lock
In the Linux kernel, the following vulnerability has been resolved: spi: spidev: fix lock inversion between spi_lock and buf_lock The spidev driver previously used two mutexes, spi_lock and buf_lock, but acquired them in different orders depending on the code path: write()/read(): buf_lock -> spi_lock ioctl(): spi_lock -> buf_lock This AB-BA locking pattern triggers lockdep warnings and can cause real deadlocks: WARNING: possible circular locking dependency detected spidev_ioctl() -> mutex_lock(&spidev->buf_lock) spidev_sync_write() -> mutex_lock(&spidev->spi_lock) *** DEADLOCK *** The issue is reproducible with a simple userspace program that performs write() and SPI_IOC_WR_MAX_SPEED_HZ ioctl() calls from separate threads on the same spidev file descriptor. Fix this by simplifying the locking model and removing the lock inversion entirely. spidev_sync() no longer performs any locking, and all callers serialize access using spi_lock. buf_lock is removed since its functionality is fully covered by spi_lock, eliminating the possibility of lock ordering issues. This removes the lock inversion and prevents deadlocks without changing userspace ABI or behaviour.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| a720416d94634068951773cb9e9d6f1b73769e5b | affected | git | fabfed1afe273717ea33b8aee46b767360edbb80 | Unavailable | None listed |
| a720416d94634068951773cb9e9d6f1b73769e5b | affected | git | f8431b8672231d378b03176fe74c95adfd3522cf | Unavailable | None listed |
| a720416d94634068951773cb9e9d6f1b73769e5b | affected | git | e341e18215030af2136836b78508e0d798916df7 | Unavailable | None listed |
| a720416d94634068951773cb9e9d6f1b73769e5b | affected | git | 41ccfac7d302968a4f32b5f7b012d066c5f5cdf8 | Unavailable | None listed |
| a720416d94634068951773cb9e9d6f1b73769e5b | affected | git | 40534d19ed2afb880ecf202dab26a8e7a5808d16 | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 6.2 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 6.2 | Unavailable | None listed |
| 6.6.142 | unaffected | semver | Unavailable | 6.6.* | None listed |
| 6.12.75 | unaffected | semver | Unavailable | 6.12.* | None listed |
| 6.18.16 | unaffected | semver | Unavailable | 6.18.* | None listed |
| 6.19.6 | unaffected | semver | Unavailable | 6.19.* | None listed |
| 7.0 | unaffected | original_commit_for_fix | Unavailable | * | None listed |