VDB

CVE-2023-52486

CVE-2023-52486 PUBLISHED CVSS 7.8 HIGH

drm: Don't unref the same fb many times by mistake due to deadlock handling

Reported by linux · Published February 29, 2024

In the Linux kernel, the following vulnerability has been resolved: drm: Don't unref the same fb many times by mistake due to deadlock handling If we get a deadlock after the fb lookup in drm_mode_page_flip_ioctl() we proceed to unref the fb and then retry the whole thing from the top. But we forget to reset the fb pointer back to NULL, and so if we then get another error during the retry, before the fb lookup, we proceed the unref the same fb again without having gotten another reference. The end result is that the fb will (eventually) end up being freed while it's still in use. Reset fb to NULL once we've unreffed it to avoid doing it again until we've done another fb lookup. This turned out to be pretty easy to hit on a DG2 when doing async flips (and CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y). The first symptom I saw that drm_closefb() simply got stuck in a busy loop while walking the framebuffer list. Fortunately I was able to convince it to oops instead, and from there it was easier to track down the culprit.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux4.14.343-259.562.amzn2
kernel-develAmazon Linux4.14.343-259.562.amzn2
kernelAmazon Linux6.1.77-99.164.amzn2023, 4.14.343-259.562.amzn2
kernel-headersAmazon Linux4.14.343-259.562.amzn2
kernel-modules-extra-commonAmazon Linux6.1.77-99.164.amzn2023
kernel-modules-extraAmazon Linux6.1.77-99.164.amzn2023
kernel-livepatch-4.14.343-259.562Amazon Linux1.0-0.amzn2
python-perfAmazon Linux4.14.343-259.562.amzn2
python3-perfAmazon Linux6.1.77-99.164.amzn2023
linux_kernellinux6.7.3, 6.6.15, 6.1.76, 5.15.149, 5.10.210, 5.4.269, 4.19.307
LinuxLinuxf55261469be87c55df13db76dc945f6bcd825105, d7afdf360f4ac142832b098b4de974e867cc063c, cb4daf271302d71a6b9a7c01bd0b6d76febd8f0c, b4af63da9d94986c529d74499fdfe44289acd551, 9dd334a8245011ace45e53298175c7b659edb3e7, 62f2e79cf9f4f47cc9dea9cebdf58d9f7b5695e0

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux29dc0d1de18239cf3ef8bab578b8321ed340d81c, 29dc0d1de18239cf3ef8bab578b8321ed340d81c, 29dc0d1de18239cf3ef8bab578b8321ed340d81c
LinuxLinux4.12, 0, 4.19.307
amazon:2kernel-tools-devel0
amazon:2kernel-devel0
amazon:2023kernel0
amazon:2kernel-headers0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2kernel-livepatch-4.14.343-259.5620
amazon:2python-perf0
amazon:2kernel0
amazon:2023python3-perf0
LinuxLinux29dc0d1de18239cf3ef8bab578b8321ed340d81c, 29dc0d1de18239cf3ef8bab578b8321ed340d81c, 29dc0d1de18239cf3ef8bab578b8321ed340d81c
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools0
amazon:2023kernel-devel0
amazon:2kernel-tools0
amazon:2023bpftool0
amazon:2023kernel-headers0
linuxlinux_kernel4.12, 4.12, 4.12

…and 6 more

Timeline

  • Feb 29, 2024 CVE Published
  • Mar 1, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (6 in total, the first dated here)
  • Jan 25, 2026 Security Advisory (96 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (92 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-52486
vulnetix vdb fixes CVE-2023-52486

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52486/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›