{"id":"CVE-2024-49894","aliases":["CVE-2024-49894"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amd/display: Fix index out of bounds in degamma hardware format translation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix index out of bounds in degamma hardware format translation\n\nFixes index out of bounds issue in\n`cm_helper_translate_curve_to_degamma_hw_format` function. The issue\ncould occur when the index 'i' exceeds the number of transfer function\npoints (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 the function returns\nfalse to indicate an error.\n\nReported by smatch:\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:594 cm_helper_translate_curve_to_degamma_hw_format() error: buffer overflow 'output_tf->tf_pts.red' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:595 cm_helper_translate_curve_to_degamma_hw_format() error: buffer overflow 'output_tf->tf_pts.green' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:596 cm_helper_translate_curve_to_degamma_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 index out of bounds in degamma hardware format translation\n\nFixes index out of bounds issue in\n`cm_helper_translate_curve_to_degamma_hw_format` function. The issue\ncould occur when the index 'i' exceeds the number of transfer function\npoints (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 the function returns\nfalse to indicate an error.\n\nReported by smatch:\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:594 cm_helper_translate_curve_to_degamma_hw_format() error: buffer overflow 'output_tf->tf_pts.red' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:595 cm_helper_translate_curve_to_degamma_hw_format() error: buffer overflow 'output_tf->tf_pts.green' 1025 <= s32max\ndrivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:596 cm_helper_translate_curve_to_degamma_hw_format() error: buffer overflow 'output_tf->tf_pts.blue' 1025 <= s32max","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/display: Corrige el índice fuera de los límites en la traducción del formato de hardware degamma Corrige el problema del índice fuera de los límites en la función `cm_helper_translate_curve_to_degamma_hw_format`. El problema podría ocurrir cuando el índice 'i' excede el número de puntos de función de transferencia (TRANSFER_FUNC_POINTS). La correcció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, la función devuelve falso para indicar un error. Reportado por smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:594 cm_helper_translate_curve_to_degamma_hw_format() error: desbordamiento de búfer 'output_tf-&gt;tf_pts.red' 1025 &lt;= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:595 cm_helper_translate_curve_to_degamma_hw_format() error: desbordamiento de búfer 'output_tf-&gt;tf_pts.green' 1025 &lt;= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_cm_common.c:596 cm_helper_translate_curve_to_degamma_hw_format() error: desbordamiento de búfer 'output_tf-&gt;tf_pts.blue' 1025 &lt;= s32max","source":"nvd"}],"published":"2024-10-21T18:01:28.360Z","modified":"2026-10-15T01:19:00.307Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"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:N/A:H","score":7.1,"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":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"b3dfa878257a7e98830b3009ca5831a01d8f85fc","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"f5f6d90087131812c1e4b9d3103f400f1624396d","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"c130a3c09e3746c1a09ce26c20d21d449d039b1d","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"c6979719012a90e5b8e3bc31725fbfdd0b9b2b79","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"2495c8e272d84685403506833a664fad932e453a","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"122e3a7a8c7bcbe3aacddd6103f67f9f36bed473","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"2f5da549535be8ccd2ab7c9abac8562ad370b181","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"07078fa5d589a7fbce8f81ea8acf7aa0021ab38e","status":"affected"},{"type":"git","introduced":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","fixed":"b7e99058eb2e86aabd7a10761e76cae33d22b49f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"4.19.323","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.285","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.227","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.55","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.14","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.3","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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","version":"1.1"}],"vendor":"siemens","product":"simatic_s7-1500_tm_mfp_firmware","cpe":"cpe:2.3:o:siemens:simatic_s7-1500_tm_mfp_firmware:1.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"4.15","fixed":"4.19.323"},{"status":"affected","introduced":"4.20","fixed":"5.4.285"},{"status":"affected","introduced":"5.5","fixed":"5.10.227"},{"status":"affected","introduced":"5.11","fixed":"5.15.168"},{"status":"affected","introduced":"5.16","fixed":"6.1.113"},{"status":"affected","introduced":"6.2","fixed":"6.6.55"},{"status":"affected","introduced":"6.7","fixed":"6.10.14"},{"status":"affected","introduced":"6.11","fixed":"6.11.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.2"}],"vendor":"siemens","product":"sinec_os","cpe":"cpe:2.3:o:siemens:sinec_os:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b3dfa878257a7e98830b3009ca5831a01d8f85fc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5f6d90087131812c1e4b9d3103f400f1624396d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c130a3c09e3746c1a09ce26c20d21d449d039b1d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6979719012a90e5b8e3bc31725fbfdd0b9b2b79","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2495c8e272d84685403506833a664fad932e453a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/122e3a7a8c7bcbe3aacddd6103f67f9f36bed473","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f5da549535be8ccd2ab7c9abac8562ad370b181","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07078fa5d589a7fbce8f81ea8acf7aa0021ab38e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7e99058eb2e86aabd7a10761e76cae33d22b49f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:43:53.969Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49894","url":"https://www.cve.org/CVERecord?id=CVE-2024-49894","licence":"CVE Terms of Use","modified":"2026-10-15T00:54:01.423Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49894","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49894","licence":"Public domain","modified":"2026-10-15T01:19:00.307Z"}],"updatedAt":"2026-11-25T22:58:47.033Z","epss":{"score":0.0033,"percentile":0.2821,"date":"2026-12-01T12:00:22.000Z"}}