Commit 11ce137
committed
media: uvcvideo: Only save async fh if success
jira VULN-53466
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 68eef65 commit 11ce137
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1606 | 1606 | | |
1607 | 1607 | | |
1608 | 1608 | | |
1609 | | - | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
1610 | 1613 | | |
1611 | 1614 | | |
1612 | 1615 | | |
| |||
1654 | 1657 | | |
1655 | 1658 | | |
1656 | 1659 | | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
1657 | 1664 | | |
1658 | 1665 | | |
1659 | 1666 | | |
| |||
1690 | 1697 | | |
1691 | 1698 | | |
1692 | 1699 | | |
1693 | | - | |
1694 | | - | |
| 1700 | + | |
| 1701 | + | |
1695 | 1702 | | |
1696 | 1703 | | |
1697 | 1704 | | |
| |||
1839 | 1846 | | |
1840 | 1847 | | |
1841 | 1848 | | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | 1849 | | |
1846 | 1850 | | |
1847 | 1851 | | |
| |||
2163 | 2167 | | |
2164 | 2168 | | |
2165 | 2169 | | |
2166 | | - | |
| 2170 | + | |
2167 | 2171 | | |
2168 | 2172 | | |
2169 | 2173 | | |
| |||
0 commit comments