media: cx23885: cancel NetUP CI work before teardown
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: media: cx23885: cancel NetUP CI work before teardown netup_ci_exit() frees a netup_ci_state while its work item, netup_read_ci_status(), may still be pending or running on the system workqueue. The worker obtains the state with container_of() and dereferences it, so it must not outlive the state. netup_ci_init() queues the initial status read, and CI GPIO interrupts subsequently queue the same work from netup_ci_slot_status(). During remove, cx23885_finidev() calls free_irq() before the CI device is unregistered. free_irq() prevents further IRQ handlers from running, but does not drain work queued previously, so the worker can run after netup_ci_exit() frees the state. Call cancel_work_sync() before dvb_ca_en50221_release() and kfree(). This issue was found by an in-house static analysis tool.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in aaf76794b870b0f391eff339252a2e2e22f33a4a; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in f7ff5adb63c1b277565afa54ccc0924d841b4a52; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in 140ecbcbf978fbe60f83f8d4f8b1199029a5c763; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in ec82b0cf7f75fd95802592dcc9560fc7f529bba4; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in 5deec890ecfa04d21cfa9bb9a2fe5e9dc98db5c5; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in bf3f49273d5bf6acbdad18ff44c01ffcf7a7a146; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in 99cd62b9b1c818d6d01a87be9a8e5796314150a2; From c184dcd282337c09695a4c1761d7ac77fdc8fb7d · fixed in 4e143d662ca94888b494b2427fc9e34494eb933a
- Linux Linux
2.6.30
- KernelLinux
From 2.6.30 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/aaf76794b870b0f391eff339252a2e2e22f33a4a
- stable/c/f7ff5adb63c1b277565afa54ccc0924d841b4a52
- stable/c/140ecbcbf978fbe60f83f8d4f8b1199029a5c763
- stable/c/ec82b0cf7f75fd95802592dcc9560fc7f529bba4
- stable/c/5deec890ecfa04d21cfa9bb9a2fe5e9dc98db5c5
- stable/c/bf3f49273d5bf6acbdad18ff44c01ffcf7a7a146
- stable/c/99cd62b9b1c818d6d01a87be9a8e5796314150a2
- stable/c/4e143d662ca94888b494b2427fc9e34494eb933a