# CVE-2026-98094: staging: fbtft: make dirty_lock IRQ-safe

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-09-25T10:24:25.889Z
- Modified: 2026-10-23T18:55:31.727Z
- Weaknesses: CWE-667
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

staging: fbtft: make dirty_lock IRQ-safe

fbtft_mkdirty() can be reached from the fbcon rendering path while
processing printk() in hardirq context. Meanwhile, dirty_lock is also
taken by fbtft_deferred_io() in workqueue context with local interrupts
enabled.

Lockdep reports a possible IRQ lock inversion involving dirty_lock and
console_owner. A hardirq can interrupt a CPU holding dirty_lock and
enter the console rendering path, which can attempt to acquire
dirty_lock again.

The following lockdep report was observed on an RK3566 system with
CONFIG_PROVE_LOCKING enabled:

  WARNING: possible irq lock inversion dependency detected
  swapper/2/0 just changed the state of lock:
  (console_owner){-...}-{0:0}
  but this lock took another, HARDIRQ-unsafe lock in the past:
  (&par->dirty_lock){+.+.}-{2:2}

  CPU0                    CPU1
  ----                    ----
  lock(&par->dirty_lock);
                         local_irq_disable();
                         lock(console_owner);
                         lock(&par->dirty_lock);
  <Interrupt>
    lock(console_owner);

  *** DEADLOCK ***

Use spin_lock_irqsave() for fbtft_mkdirty() and spin_lock_irq() for
fbtft_deferred_io(). They only access the dirty line range, so the
IRQ-off regions remain short.

(As written by CVE List.)

## Affected

- Linux Linux: from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 0843298b159599ee7bc6d14800efdb4bc7349706; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before a323066337ed85c38decfc7f6bbf42f27605dff1; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before f2451e18826eb6a33ea51419f39bdd2eb99fa1ea; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 10cc145b873670438d3b105133dffdae70822db6; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 2a609e29efbba79f9abd68c4ec8a2bd7ecf291e7; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before f0c869df2c33793c8828acaab3e4a5e0176f9f00; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before dcb48fde8003492256dee45815144aa5ed26ce7c; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before f576944a59f31bcffff121117ebf452c5dd162b7; 4.0 (not affected: before 4.0; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 4.0 before 5.10.271; from 5.11 before 5.15.222; from 5.16 before 6.1.189; from 6.2 before 6.6.158; from 6.7 before 6.12.111; from 6.13 before 6.18.53; from 6.19 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/0843298b159599ee7bc6d14800efdb4bc7349706> (patch)
- <https://git.kernel.org/stable/c/a323066337ed85c38decfc7f6bbf42f27605dff1> (patch)
- <https://git.kernel.org/stable/c/f2451e18826eb6a33ea51419f39bdd2eb99fa1ea> (patch)
- <https://git.kernel.org/stable/c/10cc145b873670438d3b105133dffdae70822db6> (patch)
- <https://git.kernel.org/stable/c/2a609e29efbba79f9abd68c4ec8a2bd7ecf291e7> (patch)
- <https://git.kernel.org/stable/c/f0c869df2c33793c8828acaab3e4a5e0176f9f00> (patch)
- <https://git.kernel.org/stable/c/dcb48fde8003492256dee45815144aa5ed26ce7c> (patch)
- <https://git.kernel.org/stable/c/f576944a59f31bcffff121117ebf452c5dd162b7> (patch)

## Sources

- CVE List: [CVE-2026-98094](https://www.cve.org/CVERecord?id=CVE-2026-98094), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98094](https://nvd.nist.gov/vuln/detail/CVE-2026-98094), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-98094 · Whole record: https://cve.day/CVE-2026-98094.json · Rebuilt by cve.day 2026-11-25T22:59:41.056Z
