# CVE-2022-49525: media: cx25821: Fix the warning when removing the module

- 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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T02:13:48.674Z
- Modified: 2026-06-17T05:18:19.513Z
- Assigned by: Linux

## Description

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

media: cx25821: Fix the warning when removing the module

When removing the module, we will get the following warning:

[   14.746697] remove_proc_entry: removing non-empty directory 'irq/21', leaking at least 'cx25821[1]'
[   14.747449] WARNING: CPU: 4 PID: 368 at fs/proc/generic.c:717 remove_proc_entry+0x389/0x3f0
[   14.751611] RIP: 0010:remove_proc_entry+0x389/0x3f0
[   14.759589] Call Trace:
[   14.759792]  <TASK>
[   14.759975]  unregister_irq_proc+0x14c/0x170
[   14.760340]  irq_free_descs+0x94/0xe0
[   14.760640]  mp_unmap_irq+0xb6/0x100
[   14.760937]  acpi_unregister_gsi_ioapic+0x27/0x40
[   14.761334]  acpi_pci_irq_disable+0x1d3/0x320
[   14.761688]  pci_disable_device+0x1ad/0x380
[   14.762027]  ? _raw_spin_unlock_irqrestore+0x2d/0x60
[   14.762442]  ? cx25821_shutdown+0x20/0x9f0 [cx25821]
[   14.762848]  cx25821_finidev+0x48/0xc0 [cx25821]
[   14.763242]  pci_device_remove+0x92/0x240

Fix this by freeing the irq before call pci_disable_device().

(As written by CVE List.)

## Affected

- Linux Linux: from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 4d6295b6d986476232332fffd08575b185f90d81; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 5beb85ff7d005ddb7bf604a4f2dc76f01b84b318; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 258639bc55a586ee6df92d89786ccf1c71546d70; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 222292930c8ecc3516e03ec1f9fa8448be7ff496; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 3f94169affa33c9db4a439d88f09cb2ed3a33332; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 1f0fc1dfb5fdd456657519a97fab83691b96c6a0; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 9d92291698e5cc35a2b8a1106a01ddd7d60ade2d; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 005fd553f5f10fe8618d92f94ad10f9051eac331; from 02b20b0b4cde011f7ad6b5363fb88b93f7ad4e5b before 2203436a4d24302871617373a7eb21bc17e38762; 2.6.32 (not affected: before 2.6.32; from 4.9.318 up to 4.9.*; from 4.14.283 up to 4.14.*; from 4.19.247 up to 4.19.*; from 5.4.198 up to 5.4.*; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: before 4.9.318; from 4.10 before 4.14.283; from 4.15 before 4.19.247; from 4.20 before 5.4.198; from 5.5 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/4d6295b6d986476232332fffd08575b185f90d81> (patch)
- <https://git.kernel.org/stable/c/5beb85ff7d005ddb7bf604a4f2dc76f01b84b318> (patch)
- <https://git.kernel.org/stable/c/258639bc55a586ee6df92d89786ccf1c71546d70> (patch)
- <https://git.kernel.org/stable/c/222292930c8ecc3516e03ec1f9fa8448be7ff496> (patch)
- <https://git.kernel.org/stable/c/3f94169affa33c9db4a439d88f09cb2ed3a33332> (patch)
- <https://git.kernel.org/stable/c/1f0fc1dfb5fdd456657519a97fab83691b96c6a0> (patch)
- <https://git.kernel.org/stable/c/9d92291698e5cc35a2b8a1106a01ddd7d60ade2d> (patch)
- <https://git.kernel.org/stable/c/005fd553f5f10fe8618d92f94ad10f9051eac331> (patch)
- <https://git.kernel.org/stable/c/2203436a4d24302871617373a7eb21bc17e38762> (patch)

## Sources

- CVE List: [CVE-2022-49525](https://www.cve.org/CVERecord?id=CVE-2022-49525), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49525](https://nvd.nist.gov/vuln/detail/CVE-2022-49525), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49525 · Whole record: https://cve.day/CVE-2022-49525.json · Rebuilt by cve.day 2026-11-25T22:58:20.709Z
