Commit 204f212
committed
media: uvcvideo: Only save async fh if success
jira VULN-53462
jira VULN-53461
cve-pre CVE-2024-58002
commit-author Ricardo Ribalda <ribalda@chromium.org>
commit d9fecd0
Now we keep a reference to the active fh for any call to uvc_ctrl_set,
regardless if it is an actual set or if it is a just a try or if the
device refused the operation.
We should only keep the file handle if the device actually accepted
applying the operation.
Cc: stable@vger.kernel.org
Fixes: e5225c8 ("media: uvcvideo: Send a control event when a Control Change interrupt arrives")
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20241203-uvc-fix-async-v6-1-26c867231118@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
(cherry picked from commit d9fecd0)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 181b6df commit 204f212
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1764 | 1764 | | |
1765 | 1765 | | |
1766 | 1766 | | |
1767 | | - | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
1768 | 1771 | | |
1769 | 1772 | | |
1770 | 1773 | | |
| |||
1812 | 1815 | | |
1813 | 1816 | | |
1814 | 1817 | | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
1815 | 1822 | | |
1816 | 1823 | | |
1817 | 1824 | | |
| |||
1848 | 1855 | | |
1849 | 1856 | | |
1850 | 1857 | | |
1851 | | - | |
1852 | | - | |
| 1858 | + | |
| 1859 | + | |
1853 | 1860 | | |
1854 | 1861 | | |
1855 | 1862 | | |
| |||
1999 | 2006 | | |
2000 | 2007 | | |
2001 | 2008 | | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | 2009 | | |
2006 | 2010 | | |
2007 | 2011 | | |
| |||
2323 | 2327 | | |
2324 | 2328 | | |
2325 | 2329 | | |
2326 | | - | |
| 2330 | + | |
2327 | 2331 | | |
2328 | 2332 | | |
2329 | 2333 | | |
| |||
0 commit comments