{"id":"CVE-2022-50399","state":"PUBLISHED","title":"media: atomisp: prevent integer overflow in sh_css_set_black_frame()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: atomisp: prevent integer overflow in sh_css_set_black_frame()\n\nThe \"height\" and \"width\" values come from the user so the \"height * width\"\nmultiplication can overflow.","publishedAt":"2025-09-18T13:33:16.647Z","updatedAt":"2026-08-05T08:58:33.676Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a49d25364dfb9f8a64037488a39ab1f56c5fa419","status":"affected","lessThan":"51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654","versionType":"git"},{"version":"ad85094b293e40e7a2f831b0311a389d952ebd5e","status":"affected","lessThan":"a560aeac2f2d284903b5900774765d7fc61547bc","versionType":"git"},{"version":"ad85094b293e40e7a2f831b0311a389d952ebd5e","status":"affected","lessThan":"a549517e4b761f3940011db30320cb8c9badde54","versionType":"git"},{"version":"ad85094b293e40e7a2f831b0311a389d952ebd5e","status":"affected","lessThan":"3ad290194bb06979367622e47357462836c1d3b4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/atomisp/pci/sh_css_params.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"4.18","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.15.77","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.7","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/atomisp/pci/sh_css_params.c"]}],"references":["https://git.kernel.org/stable/c/51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654","https://git.kernel.org/stable/c/a560aeac2f2d284903b5900774765d7fc61547bc","https://git.kernel.org/stable/c/a549517e4b761f3940011db30320cb8c9badde54","https://git.kernel.org/stable/c/3ad290194bb06979367622e47357462836c1d3b4"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50399.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50399","state":"PUBLISHED","datePublished":"2025-09-18T13:33:16.647Z","dateUpdated":"2026-08-05T08:58:33.676Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:53:06.999Z"},"containers":{"cna":{"title":"media: atomisp: prevent integer overflow in sh_css_set_black_frame()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: atomisp: prevent integer overflow in sh_css_set_black_frame()\n\nThe \"height\" and \"width\" values come from the user so the \"height * width\"\nmultiplication can overflow."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a49d25364dfb9f8a64037488a39ab1f56c5fa419","status":"affected","lessThan":"51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654","versionType":"git"},{"version":"ad85094b293e40e7a2f831b0311a389d952ebd5e","status":"affected","lessThan":"a560aeac2f2d284903b5900774765d7fc61547bc","versionType":"git"},{"version":"ad85094b293e40e7a2f831b0311a389d952ebd5e","status":"affected","lessThan":"a549517e4b761f3940011db30320cb8c9badde54","versionType":"git"},{"version":"ad85094b293e40e7a2f831b0311a389d952ebd5e","status":"affected","lessThan":"3ad290194bb06979367622e47357462836c1d3b4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/atomisp/pci/sh_css_params.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"4.18","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.15.77","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.7","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/media/atomisp/pci/sh_css_params.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654"},{"url":"https://git.kernel.org/stable/c/a560aeac2f2d284903b5900774765d7fc61547bc"},{"url":"https://git.kernel.org/stable/c/a549517e4b761f3940011db30320cb8c9badde54"},{"url":"https://git.kernel.org/stable/c/3ad290194bb06979367622e47357462836c1d3b4"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires opening the AtomISP V4L2 video device node and issuing the private ATOMISP_IOC_S_ISP_FPN_TABLE ioctl; the vulnerable path is not reachable via network packets or adjacent-network protocols.\nAC:L - An attacker who can open the device fully controls the v4l2_framebuffer width/height/bytesperline values that overflow the allocation and can reliably set up a CSS stream first, so no conditions outside the attacker’s control are required.\nPR:L - Access only requires opening /dev/video* (typically video-group or camera-permission access); atomisp_open and the FPN ioctl path perform no CAP_SYS_ADMIN or root checks.\nUI:N - The attacker triggers the bug directly via ioctl with crafted framebuffer dimensions; no action by another user is required.\nS:U - The impact is kernel memory corruption within the host kernel’s security authority (local privilege escalation / DoS), not a VM, IOMMU, or other cross-boundary escape.\nC:H - The overflow yields a heap out-of-bounds write of attacker-supplied frame data into the undersized fpn_config buffer, which can be leveraged for arbitrary kernel memory disclosure.\nI:H - The nested height/width loops write past the undersized kvmalloc buffer with attacker-controlled contents, enabling heap corruption suitable for control-flow hijacking or arbitrary write primitives.\nA:H - The same out-of-bounds heap writes reliably cause kernel oops/panic, and a NULL stream also yields an immediate kernel crash on dereference."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:58:33.676Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"4.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.77"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.0.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-50399","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T18:52:28.120652Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","type":"CWE","description":"CWE-190 Integer Overflow or Wraparound"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:53:06.477Z"}}]}}}