{
  "threat_severity" : "Moderate",
  "public_date" : "2024-05-01T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: drm/vmwgfx: Create debugfs ttm_resource_manager entry only if needed",
    "id" : "2278218",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2278218"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-20",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\ndrm/vmwgfx: Create debugfs ttm_resource_manager entry only if needed\nThe driver creates /sys/kernel/debug/dri/0/mob_ttm even when the\ncorresponding ttm_resource_manager is not allocated.\nThis leads to a crash when trying to read from this file.\nAdd a check to create mob_ttm, system_mob_ttm, and gmr_ttm debug file\nonly when the corresponding ttm_resource_manager is allocated.\ncrash> bt\nPID: 3133409  TASK: ffff8fe4834a5000  CPU: 3    COMMAND: \"grep\"\n#0 [ffffb954506b3b20] machine_kexec at ffffffffb2a6bec3\n#1 [ffffb954506b3b78] __crash_kexec at ffffffffb2bb598a\n#2 [ffffb954506b3c38] crash_kexec at ffffffffb2bb68c1\n#3 [ffffb954506b3c50] oops_end at ffffffffb2a2a9b1\n#4 [ffffb954506b3c70] no_context at ffffffffb2a7e913\n#5 [ffffb954506b3cc8] __bad_area_nosemaphore at ffffffffb2a7ec8c\n#6 [ffffb954506b3d10] do_page_fault at ffffffffb2a7f887\n#7 [ffffb954506b3d40] page_fault at ffffffffb360116e\n[exception RIP: ttm_resource_manager_debug+0x11]\nRIP: ffffffffc04afd11  RSP: ffffb954506b3df0  RFLAGS: 00010246\nRAX: ffff8fe41a6d1200  RBX: 0000000000000000  RCX: 0000000000000940\nRDX: 0000000000000000  RSI: ffffffffc04b4338  RDI: 0000000000000000\nRBP: ffffb954506b3e08   R8: ffff8fee3ffad000   R9: 0000000000000000\nR10: ffff8fe41a76a000  R11: 0000000000000001  R12: 00000000ffffffff\nR13: 0000000000000001  R14: ffff8fe5bb6f3900  R15: ffff8fe41a6d1200\nORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018\n#8 [ffffb954506b3e00] ttm_resource_manager_show at ffffffffc04afde7 [ttm]\n#9 [ffffb954506b3e30] seq_read at ffffffffb2d8f9f3\nRIP: 00007f4c4eda8985  RSP: 00007ffdbba9e9f8  RFLAGS: 00000246\nRAX: ffffffffffffffda  RBX: 000000000037e000  RCX: 00007f4c4eda8985\nRDX: 000000000037e000  RSI: 00007f4c41573000  RDI: 0000000000000003\nRBP: 000000000037e000   R8: 0000000000000000   R9: 000000000037fe30\nR10: 0000000000000000  R11: 0000000000000246  R12: 00007f4c41573000\nR13: 0000000000000003  R14: 00007f4c41572010  R15: 0000000000000003\nORIG_RAX: 0000000000000000  CS: 0033  SS: 002b", "A flaw was found in the vmwgfx module in the Linux kernel. Trying to read the /sys/kernel/debug/dri/0/mob_ttm file when the ttm_resource_manager is not allocated will cause a crash, resulting in a denial of service." ],
  "statement" : "This issue can allow a local attacker to cause a system crash, resulting in a denial of service.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2024-08-08T00:00:00Z",
    "advisory" : "RHSA-2024:5102",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8::nfv",
    "package" : "kernel-rt-0:4.18.0-553.16.1.rt7.357.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2024-08-08T00:00:00Z",
    "advisory" : "RHSA-2024:5101",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-553.16.1.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-11-12T00:00:00Z",
    "advisory" : "RHSA-2024:9315",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-503.11.1.el9_5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-11-12T00:00:00Z",
    "advisory" : "RHSA-2024:9315",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-503.11.1.el9_5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.4 Extended Update Support",
    "release_date" : "2025-03-26T00:00:00Z",
    "advisory" : "RHSA-2025:3215",
    "cpe" : "cpe:/a:redhat:rhel_eus:9.4",
    "package" : "kernel-0:5.14.0-427.61.1.el9_4"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-26940\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-26940\nhttps://lore.kernel.org/linux-cve-announce/2024050125-CVE-2024-26940-1785@gregkh/T" ],
  "name" : "CVE-2024-26940",
  "mitigation" : {
    "value" : "Do not try to read the /sys/kernel/debug/dri/0/mob_ttm file.",
    "lang" : "en:us"
  },
  "csaw" : false
}