{"id":"CVE-2024-42227","summary":"drm/amd/display: Fix overlapping copy within dml_core_mode_programming","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix overlapping copy within dml_core_mode_programming\n\n[WHY]\n&mode_lib-\u003emp.Watermark and &locals-\u003eWatermark are\nthe same address. memcpy may lead to unexpected behavior.\n\n[HOW]\nmemmove should be used.","modified":"2026-04-02T12:17:52.409271Z","published":"2024-07-30T07:47:08.132Z","related":["SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3383-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42227.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9342da15f2491d8600eca89c8e0da08876fb969b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1fd8a0a54e6d23a6d16ee29159f247862460fd1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42227.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42227"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7966f319c66d9468623c6a6a017ecbc0dd79be75"},{"fixed":"9342da15f2491d8600eca89c8e0da08876fb969b"},{"fixed":"f1fd8a0a54e6d23a6d16ee29159f247862460fd1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42227.json"}}],"schema_version":"1.7.5"}