media: nxp: imx8-isi: Add missing v4l2_subdev_cleanup() in crossbar and pipe
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f04ec98605420e7c2c1ad6d2f6fb26692d4f218a, Kernel 549dd1afce2cf79a826d1f9742effb4565d52871, Kernel 567418eedd25b3d86d489807682030b4b98b73d9 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: media: nxp: imx8-isi: Add missing v4l2_subdev_cleanup() in crossbar and pipe Both mxc_isi_crossbar_init() and mxc_isi_pipe_init() call v4l2_subdev_init_finalize() which allocates the subdev active state, but neither mxc_isi_crossbar_cleanup() nor mxc_isi_pipe_cleanup() calls v4l2_subdev_cleanup() to free it. This causes a memory leak on every rmmod, reported by kmemleak: unreferenced object 0xffff0000d06fc800 (size 192): comm "(udev-worker)", pid 254, jiffies 4294913455 backtrace (crc 36eeae58): kmemleak_alloc+0x34/0x40 __kvmalloc_node_noprof+0x5f8/0x7d8 __v4l2_subdev_state_alloc+0x1fc/0x30c __v4l2_subdev_init_finalize+0x178/0x368 Add the missing v4l2_subdev_cleanup() calls before media_entity_cleanup() in both crossbar and pipe cleanup paths.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=cf21f328fcafacf4f96e7a30ef9dceede1076378 <f04ec98605420e7c2c1ad6d2f6fb26692d4f218a, >=cf21f328fcafacf4f96e7a30ef9dceede1076378 <549dd1afce2cf79a826d1f9742effb4565d52871, >=cf21f328fcafacf4f96e7a30ef9dceede1076378 <567418eedd25b3d86d489807682030b4b98b73d9, >=cf21f328fcafacf4f96e7a30ef9dceede1076378 <9c5ddbabc31fda93a508d9b8f0c776a4a08e49f5, >=cf21f328fcafacf4f96e7a30ef9dceede1076378 <9e61258fbc3cfc053e4c2ed72254c2de76772354, =6.4 | f04ec98605420e7c2c1ad6d2f6fb26692d4f218a, 549dd1afce2cf79a826d1f9742effb4565d52871, 567418eedd25b3d86d489807682030b4b98b73d9, 9c5ddbabc31fda93a508d9b8f0c776a4a08e49f5, 9e61258fbc3cfc053e4c2ed72254c2de76772354 |
| linux-kernel: Kernel | >=6.19.0 <7.1.6, >=6.4.0 <6.6.148, >=6.7.0 <6.12.101, >=6.13.0 <6.18.42 | 7.1.6, 6.6.148, 6.12.101, 6.18.42 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket