{"id":"CVE-2023-52565","state":"PUBLISHED","title":"media: uvcvideo: Fix OOB read","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: uvcvideo: Fix OOB read\n\nIf the index provided by the user is bigger than the mask size, we might do\nan out of bound read.","publishedAt":"2024-03-02T21:59:37.505Z","updatedAt":"2026-08-05T09:10:25.951Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"367703c3ec4f72208b8cae14310b8a2c955ec565","status":"affected","lessThan":"09635bf4cdd4adf2160198a6041bcc7ca46c0558","versionType":"git"},{"version":"40140eda661ea4be219ef194a4f43b7b5e3bbd27","status":"affected","lessThan":"8bcf70d787f7d53a3b85ad394f926cfef3eed023","versionType":"git"},{"version":"40140eda661ea4be219ef194a4f43b7b5e3bbd27","status":"affected","lessThan":"41ebaa5e0eebea4c3bac96b72f9f8ae0d77c0bdb","versionType":"git"},{"version":"42cbbc6b2c39b02e07cbd24dc2155d4edb99dd04","status":"affected","versionType":"git"},{"version":"6.1.16","status":"affected","lessThan":"6.1.56","versionType":"semver"},{"version":"6.2.3","status":"affected","lessThan":"6.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/uvc/uvc_ctrl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.1.56","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.6","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/uvc/uvc_ctrl.c"]}],"references":["https://git.kernel.org/stable/c/09635bf4cdd4adf2160198a6041bcc7ca46c0558","https://git.kernel.org/stable/c/8bcf70d787f7d53a3b85ad394f926cfef3eed023","https://git.kernel.org/stable/c/41ebaa5e0eebea4c3bac96b72f9f8ae0d77c0bdb"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52565.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52565","state":"PUBLISHED","datePublished":"2024-03-02T21:59:37.505Z","dateUpdated":"2026-08-05T09:10:25.951Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-03-02T21:55:42.567Z"},"containers":{"cna":{"title":"media: uvcvideo: Fix OOB read","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: uvcvideo: Fix OOB read\n\nIf the index provided by the user is bigger than the mask size, we might do\nan out of bound read."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"367703c3ec4f72208b8cae14310b8a2c955ec565","status":"affected","lessThan":"09635bf4cdd4adf2160198a6041bcc7ca46c0558","versionType":"git"},{"version":"40140eda661ea4be219ef194a4f43b7b5e3bbd27","status":"affected","lessThan":"8bcf70d787f7d53a3b85ad394f926cfef3eed023","versionType":"git"},{"version":"40140eda661ea4be219ef194a4f43b7b5e3bbd27","status":"affected","lessThan":"41ebaa5e0eebea4c3bac96b72f9f8ae0d77c0bdb","versionType":"git"},{"version":"42cbbc6b2c39b02e07cbd24dc2155d4edb99dd04","status":"affected","versionType":"git"},{"version":"6.1.16","status":"affected","lessThan":"6.1.56","versionType":"semver"},{"version":"6.2.3","status":"affected","lessThan":"6.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/uvc/uvc_ctrl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.1.56","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.6","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/uvc/uvc_ctrl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/09635bf4cdd4adf2160198a6041bcc7ca46c0558"},{"url":"https://git.kernel.org/stable/c/8bcf70d787f7d53a3b85ad394f926cfef3eed023"},{"url":"https://git.kernel.org/stable/c/41ebaa5e0eebea4c3bac96b72f9f8ae0d77c0bdb"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is triggered by a local VIDIOC_QUERYMENU ioctl on a UVC /dev/videoX node with a crafted menu index, not by USB descriptor/traffic from a malicious device.\nAC:L - The attacker fully controls the u32 index and can reliably force test_bit() past menu_mask into adjacent or unmapped memory without depending on races or other uncontrolled conditions.\nPR:L - Opening the video device and issuing VIDIOC_QUERYMENU requires only ordinary local access to /dev/videoX (e.g., video group or session ACL); querymenu does not call uvc_acquire_privileges or need CAP_*.\nUI:N - Once the attacker can open the existing UVC device node, exploitation needs no additional victim action such as plugging in a device or confirming a prompt.\nS:U - Impact remains within the local kernel/OS authority; this is a standard host kernel bug with no VM, IOMMU, or other security-authority boundary crossing.\nC:H - User-controlled index makes test_bit() an unbounded OOB read (bit oracle over attacker-chosen offsets), and a successful bit check can further OOB-index menu name tables and copy up to 32 bytes into the querymenu response.\nI:N - The vulnerable path only performs reads (test_bit/strscpy); the corresponding control-set path already bounds the value with ffs/fls, so there is no OOB write or integrity primitive.\nA:H - A sufficiently large index causes test_bit() to load from unmapped kernel addresses, producing a reliable kernel oops/crash and denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:10:25.951Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.16","versionEndExcluding":"6.1.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.5.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/09635bf4cdd4adf2160198a6041bcc7ca46c0558","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8bcf70d787f7d53a3b85ad394f926cfef3eed023","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/41ebaa5e0eebea4c3bac96b72f9f8ae0d77c0bdb","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:03:20.865Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52565","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:56:29.446061Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:36.805Z"}}]}}}