{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40393 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-40393 is a high-severity memory corruption vulnerability in mesa3d Mesa, published on 12 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40393 and fix it if it is affected.\n\nWhat it is: CVE-2026-40393 is a high-severity memory corruption vulnerability in mesa3d Mesa, published on 12 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40393 in the wild and no public exploit code.\n\nAffected product: mesa3d Mesa. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40393/ (Markdown: https://insights.sbomify.com/CVE-2026-40393/index.md)","id":"CVE-2026-40393","markdown":"https://insights.sbomify.com/CVE-2026-40393/index.md","name":"CVE-2026-40393","record":{"aliases":["AZL-82688","BELL-CVE-2026-40393","CLSA-2026-1787314086","DEBIAN-CVE-2026-40393","ECHO-970d-b2f9-098e","GHSA-w54f-pw7x-c532","OESA-2026-2048","OESA-2026-2049","OESA-2026-2050","OESA-2026-2051","OESA-2026-2052","SUSE-SU-2026:1343-1","SUSE-SU-2026:1835-1","SUSE-SU-2026:1839-1","SUSE-SU-2026:1844-1","SUSE-SU-2026:1845-1","SUSE-SU-2026:21292-1","SUSE-SU-2026:21412-1","SUSE-SU-2026:21534-1","SUSE-SU-2026:21564-1","UBUNTU-CVE-2026-40393","USN-8427-1","openSUSE-SU-2026:20688-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Mesa graphics library","requires_auth":"none","summary":"Out-of-bounds memory access in Mesa's WebGPU implementation allows attackers to cause crashes or execute arbitrary code via untrusted data sizes.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"mesa","vendor":"mesa3d"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"In Mesa before 25.3.6 and 26 before 26.0.1, out-of-bounds memory access can occur in WebGPU because the amount of to-be-allocated data depends on an untrusted party, and is then used for alloca.","ecosystems":["SUSE:Linux Enterprise Micro 5.2"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory corruption in Mesa","id":"CVE-2026-40393","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":1,"n_references":2,"next":{"headline":"Denial of service in Varnish Cache","id":"CVE-2026-40394"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["20.2.4-150300.59.12.1"],"introduced":["0"],"last_affected":[],"package":"Mesa","purl":"pkg:rpm/suse/Mesa\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2026:1343-1"}],"prev":{"headline":"Integer overflow in libexif","id":"CVE-2026-40386"},"products":["Mesa"],"published":"2026-04-12","related":[{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2023-45931","kev_date_added":null,"published":"2024-03-27"},{"cvss_score":6.8,"headline":"Integer overflow in n/a","id":"CVE-2013-1993","kev_date_added":null,"published":"2013-06-15"},{"cvss_score":6.2,"headline":"Null dereference in n/a","id":"CVE-2023-45913","kev_date_added":null,"published":"2024-03-27"},{"cvss_score":5.3,"headline":"Memory corruption in n/a","id":"CVE-2023-45919","kev_date_added":null,"published":"2024-03-27"},{"cvss_score":4.3,"headline":"Null dereference in n/a","id":"CVE-2023-45922","kev_date_added":null,"published":"2024-03-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-13","vendors":["mesa3d"]},"summary":"Out-of-bounds memory access in Mesa's WebGPU implementation allows attackers to cause crashes or execute arbitrary code via untrusted data sizes.","url":"https://insights.sbomify.com/CVE-2026-40393/"}