Linux
drm/komeda: fix integer overflow in AFBC framebuffer size check
In the Linux kernel, the following vulnerability has been resolved: drm/komeda: fix integer overflow in AFBC framebuffer size check The AFBC framebuffer size validation calculates the minimum required buffer size by adding the AFBC payload size to the framebuffer offset. This addition is performed without checking for integer overflow. If the addition oveflows, the size check may incorrectly succed and allow userspace to provide an undersized drm_gem_object, potentially leading to out-of-bounds memory access. Add usage of check_add_overflow() to safely compute the minimum required size and reject the framebuffer if an overflow is detected. This makes the AFBC size validation more robust against malformed. Found by Linux Verification Center (linuxtesting.org) with SVACE.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < a3a2a9bdc0f9c2d863a5a290cb2d4a565f7268e7
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < e27b58095d7d3ac72f230e318838dee956258460
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < 02ff8a7d3d0eecc546b9ab4c07b3d7c65d485583
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < d8a541906860aa3519b1874780d933c766918a7c
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < 8165e8b28fdf392c2c7412518d602b4f193812a8
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < fe1f80f8f6e8611ac6349b9d464e8750443390cf
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < 872d923b852705054bc099af663da862fdc1097d
- >= 65ad2392dd6d1691db93e82b08d3311298b9d64a, < 779ec12c85c9e4547519e3903a371a3b26a289de
Fixed in a3a2a9bdc0f9c2d863a5a290cb2d4a565f7268e7, e27b58095d7d3ac72f230e318838dee956258460, 02ff8a7d3d0eecc546b9ab4c07b3d7c65d485583, d8a541906860aa3519b1874780d933c766918a7c, 8165e8b28fdf392c2c7412518d602b4f193812a8, fe1f80f8f6e8611ac6349b9d464e8750443390cf, 872d923b852705054bc099af663da862fdc1097d, 779ec12c85c9e4547519e3903a371a3b26a289de
- 5.3
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to a3a2a9bdc0f9c2d863a5a290cb2d4a565f7268e7 or e27b58095d7d3ac72f230e318838dee956258460 or 02ff8a7d3d0eecc546b9ab4c07b3d7c65d485583 or d8a541906860aa3519b1874780d933c766918a7c or 8165e8b28fdf392c2c7412518d602b4f193812a8 or fe1f80f8f6e8611ac6349b9d464e8750443390cf or 872d923b852705054bc099af663da862fdc1097d or 779ec12c85c9e4547519e3903a371a3b26a289de or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.141 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.