{"id":"CVE-2024-38552","aliases":["CVE-2024-38552"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amd/display: Fix potential index out of bounds in color transformation function","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix potential index out of bounds in color transformation function\n\nFixes index out of bounds issue in the color transformation function.\nThe issue could occur when the index 'i' exceeds the number of transfer\nfunction points (TRANSFER_FUNC_POINTS).\n\nThe fix adds a check to ensure 'i' is within bounds before accessing the\ntransfer function points. If 'i' is out of bounds, an error message is\nlogged and the function returns false to indicate an error.\n\nReported by smatch:\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:405 cm_helper_translate_curve_to_hw_format() error: buffer overflow 'output_tf->tf_pts.red' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:406 cm_helper_translate_curve_to_hw_format() error: buffer overflow 'output_tf->tf_pts.green' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:407 cm_helper_translate_curve_to_hw_format() error: buffer overflow 'output_tf->tf_pts.blue' 1025 <= s32max","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix potential index out of bounds in color transformation function\n\nFixes index out of bounds issue in the color transformation function.\nThe issue could occur when the index 'i' exceeds the number of transfer\nfunction points (TRANSFER_FUNC_POINTS).\n\nThe fix adds a check to ensure 'i' is within bounds before accessing the\ntransfer function points. If 'i' is out of bounds, an error message is\nlogged and the function returns false to indicate an error.\n\nReported by smatch:\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:405 cm_helper_translate_curve_to_hw_format() error: buffer overflow 'output_tf->tf_pts.red' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:406 cm_helper_translate_curve_to_hw_format() error: buffer overflow 'output_tf->tf_pts.green' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:407 cm_helper_translate_curve_to_hw_format() error: buffer overflow 'output_tf->tf_pts.blue' 1025 <= s32max","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: drm/amd/display: corrige un posible índice fuera de los límites en la función de transformación de color. Corrige el problema de índice fuera de los límites en la función de transformación de color. El problema podría ocurrir cuando el índice 'i' excede la cantidad de puntos de función de transferencia (TRANSFER_FUNC_POINTS). La solución agrega una verificación para garantizar que 'i' esté dentro de los límites antes de acceder a los puntos de función de transferencia. Si 'i' está fuera de los límites, se registra un mensaje de error y la función devuelve falso para indicar un error. Reportado por smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:405 cm_helper_translate_curve_to_hw_format() error: desbordamiento del búfer 'output_tf-&gt;tf_pts.red' 1025 &lt;= controladores s32max/gpu /drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:406 cm_helper_translate_curve_to_hw_format() error: desbordamiento del búfer 'output_tf-&gt;tf_pts.green' 1025 &lt;= controladores s32max/gpu/drm/amd/amdgpu/ ../display/dc/dcn10/dcn10_cm_common.c:407 error de cm_helper_translate_curve_to_hw_format(): desbordamiento del búfer 'output_tf-&gt;tf_pts.blue' 1025 &lt;= s32max","source":"nvd"}],"published":"2024-06-19T13:35:24.067Z","modified":"2026-10-15T01:18:28.260Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"604c506ca43fce52bb882cff9c1fdf2ec3b4029c","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"e280ab978c81443103d7c61bdd1d8d708cf6ed6d","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"04bc4d1090c343025d69149ca669a27c5b9c34a7","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"ced9c4e2289a786b8fa684d8893b7045ea53ef7e","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"98b8a6bfd30d07a19cfacdf82b50f84bf3360869","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"4e8c8b37ee84b3b19c448d2b8e4c916d2f5b9c86","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"123edbae64f4d21984359b99c6e79fcde31c6123","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"7226ddf3311c5e5a7726ad7d4e7b079bb3cfbb29","status":"affected"},{"type":"git","introduced":"b629596072e5fa901c84f9e88d845a696ee32942","fixed":"63ae548f1054a0b71678d0349c7dc9628ddd42ca","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"4.19.316","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.278","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.219","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.161","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.16","fixed":"4.19.316"},{"status":"affected","introduced":"4.20","fixed":"5.4.278"},{"status":"affected","introduced":"5.5","fixed":"5.10.219"},{"status":"affected","introduced":"5.11","fixed":"5.15.161"},{"status":"affected","introduced":"5.16","fixed":"6.1.93"},{"status":"affected","introduced":"6.2","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/604c506ca43fce52bb882cff9c1fdf2ec3b4029c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e280ab978c81443103d7c61bdd1d8d708cf6ed6d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04bc4d1090c343025d69149ca669a27c5b9c34a7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ced9c4e2289a786b8fa684d8893b7045ea53ef7e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98b8a6bfd30d07a19cfacdf82b50f84bf3360869","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e8c8b37ee84b3b19c448d2b8e4c916d2f5b9c86","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/123edbae64f4d21984359b99c6e79fcde31c6123","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7226ddf3311c5e5a7726ad7d4e7b079bb3cfbb29","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63ae548f1054a0b71678d0349c7dc9628ddd42ca","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:14:50.788Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38552","url":"https://www.cve.org/CVERecord?id=CVE-2024-38552","licence":"CVE Terms of Use","modified":"2026-10-15T00:43:21.044Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38552","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38552","licence":"Public domain","modified":"2026-10-15T01:18:28.260Z"}],"updatedAt":"2026-11-25T22:58:42.011Z","epss":{"score":0.00297,"percentile":0.2409,"date":"2026-12-01T12:00:22.000Z"}}