{"id":"CVE-2022-49524","aliases":["CVE-2022-49524"],"related":[],"kind":"vulnerability","state":"published","title":"media: pci: cx23885: Fix the error handling in cx23885_initdev()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: pci: cx23885: Fix the error handling in cx23885_initdev()\n\nWhen the driver fails to call the dma_set_mask(), the driver will get\nthe following splat:\n\n[   55.853884] BUG: KASAN: use-after-free in __process_removed_driver+0x3c/0x240\n[   55.854486] Read of size 8 at addr ffff88810de60408 by task modprobe/590\n[   55.856822] Call Trace:\n[   55.860327]  __process_removed_driver+0x3c/0x240\n[   55.861347]  bus_for_each_dev+0x102/0x160\n[   55.861681]  i2c_del_driver+0x2f/0x50\n\nThis is because the driver has initialized the i2c related resources\nin cx23885_dev_setup() but not released them in error handling, fix this\nbug by modifying the error path that jumps after failing to call the\ndma_set_mask().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: pci: cx23885: Fix the error handling in cx23885_initdev()\n\nWhen the driver fails to call the dma_set_mask(), the driver will get\nthe following splat:\n\n[   55.853884] BUG: KASAN: use-after-free in __process_removed_driver+0x3c/0x240\n[   55.854486] Read of size 8 at addr ffff88810de60408 by task modprobe/590\n[   55.856822] Call Trace:\n[   55.860327]  __process_removed_driver+0x3c/0x240\n[   55.861347]  bus_for_each_dev+0x102/0x160\n[   55.861681]  i2c_del_driver+0x2f/0x50\n\nThis is because the driver has initialized the i2c related resources\nin cx23885_dev_setup() but not released them in error handling, fix this\nbug by modifying the error path that jumps after failing to call the\ndma_set_mask().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: pci: cx23885: Se corrige la gestión de errores en cx23885_initdev() Cuando el controlador no puede llamar a dma_set_mask(), el controlador obtendrá el siguiente mensaje: [ 55.853884] ERROR: KASAN: use-after-free en __process_removed_driver+0x3c/0x240 [ 55.854486] Lectura de tamaño 8 en la dirección ffff88810de60408 por la tarea modprobe/590 [ 55.856822] Seguimiento de llamadas: [ 55.860327] __process_removed_driver+0x3c/0x240 [ 55.861347] bus_for_each_dev+0x102/0x160 [ 55.861681] i2c_del_driver+0x2f/0x50 Esto se debe a que el controlador ha inicializado los recursos relacionados con i2c en cx23885_dev_setup() pero no los liberó en la gestión de errores; corrija este error modificando la ruta de error que salta después de no poder llamar a dma_set_mask().","source":"nvd"}],"published":"2025-02-26T02:13:48.222Z","modified":"2026-06-17T05:18:19.230Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"6041d1a0365baa729b6adfb6ed5386d9388018db","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"7b9978e1c94e569d65a0e7e719abb9340f5db4a0","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"ca17e7a532d1a55466cc007b3f4d319541a27493","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"98106f100f50c487469903b9cf6d966785fc9cc3","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"86bd6a579c6c60547706cabf299cd2c9feab3332","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"453514a874c78df1e7804e6e3aaa60c8d8deb6a8","status":"affected"},{"type":"git","introduced":"2bc46b3ad3c15165f91459b07ff8682478683194","fixed":"e8123311cf06d7dae71e8c5fe78e0510d20cd30b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"4.14.283","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.283"},{"status":"affected","introduced":"4.15","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6041d1a0365baa729b6adfb6ed5386d9388018db","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b9978e1c94e569d65a0e7e719abb9340f5db4a0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca17e7a532d1a55466cc007b3f4d319541a27493","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98106f100f50c487469903b9cf6d966785fc9cc3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86bd6a579c6c60547706cabf299cd2c9feab3332","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/453514a874c78df1e7804e6e3aaa60c8d8deb6a8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8123311cf06d7dae71e8c5fe78e0510d20cd30b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-27T18:15:37.962Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49524","url":"https://www.cve.org/CVERecord?id=CVE-2022-49524","licence":"CVE Terms of Use","modified":"2026-05-11T19:01:35.680Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49524","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49524","licence":"Public domain","modified":"2026-06-17T05:18:19.230Z"}],"updatedAt":"2026-11-25T22:58:20.708Z","epss":{"score":0.00269,"percentile":0.20367,"date":"2026-12-01T12:00:22.000Z"}}