{"api_version":"1","generated_at":"2026-08-03T18:12:31+00:00","cve":"CVE-2025-40213","urls":{"html":"https://cve.report/CVE-2025-40213","api":"https://cve.report/api/cve/CVE-2025-40213.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40213","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40213"},"summary":{"title":"Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete\n\nThere is a BUG: KASAN: stack-out-of-bounds in set_mesh_sync due to\nmemcpy from badly declared on-stack flexible array.\n\nAnother crash is in set_mesh_complete() due to double list_del via\nmgmt_pending_valid + mgmt_pending_remove.\n\nUse DEFINE_FLEX to declare the flexible array right, and don't memcpy\noutside bounds.\n\nAs mgmt_pending_valid removes the cmd from list, use mgmt_pending_free,\nand also report status on error.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-11-24 16:15:49","updated_at":"2026-07-30 06:24:18"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/1c9aca1787e8395a2c59fef20e914467958969c5","name":"https://git.kernel.org/stable/c/1c9aca1787e8395a2c59fef20e914467958969c5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e8785404de06a69d89dcdd1e9a0b6ea42dc6d327","name":"https://git.kernel.org/stable/c/e8785404de06a69d89dcdd1e9a0b6ea42dc6d327","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5c19daa93d9af29f1f46251b47e1ea66bcc8d679","name":"https://git.kernel.org/stable/c/5c19daa93d9af29f1f46251b47e1ea66bcc8d679","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40213","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40213","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d71b98f253b079cbadc83266383f26fe7e9e103b 5c19daa93d9af29f1f46251b47e1ea66bcc8d679 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 302a1f674c00dd5581ab8e493ef44767c5101aab 1c9aca1787e8395a2c59fef20e914467958969c5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 302a1f674c00dd5581ab8e493ef44767c5101aab e8785404de06a69d89dcdd1e9a0b6ea42dc6d327 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 87a1f16f07c6c43771754075e08f45b41d237421 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.140 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16.10 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.8 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"40213","cve":"CVE-2025-40213","epss":"0.001380000","percentile":"0.036220000","score_date":"2026-07-31","updated_at":"2026-08-01 00:10:35"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["include/net/bluetooth/mgmt.h","net/bluetooth/mgmt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"5c19daa93d9af29f1f46251b47e1ea66bcc8d679","status":"affected","version":"d71b98f253b079cbadc83266383f26fe7e9e103b","versionType":"git"},{"lessThan":"1c9aca1787e8395a2c59fef20e914467958969c5","status":"affected","version":"302a1f674c00dd5581ab8e493ef44767c5101aab","versionType":"git"},{"lessThan":"e8785404de06a69d89dcdd1e9a0b6ea42dc6d327","status":"affected","version":"302a1f674c00dd5581ab8e493ef44767c5101aab","versionType":"git"},{"status":"affected","version":"0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a","versionType":"git"},{"status":"affected","version":"87a1f16f07c6c43771754075e08f45b41d237421","versionType":"git"},{"lessThan":"6.7","status":"affected","version":"6.6.140","versionType":"semver"},{"lessThan":"6.17","status":"affected","version":"6.16.10","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["include/net/bluetooth/mgmt.h","net/bluetooth/mgmt.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.17.*","status":"unaffected","version":"6.17.8","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.18","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.8","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.140","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete\n\nThere is a BUG: KASAN: stack-out-of-bounds in set_mesh_sync due to\nmemcpy from badly declared on-stack flexible array.\n\nAnother crash is in set_mesh_complete() due to double list_del via\nmgmt_pending_valid + mgmt_pending_remove.\n\nUse DEFINE_FLEX to declare the flexible array right, and don't memcpy\noutside bounds.\n\nAs mgmt_pending_valid removes the cmd from list, use mgmt_pending_free,\nand also report status on error."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-07-30T06:01:30.120Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5c19daa93d9af29f1f46251b47e1ea66bcc8d679"},{"url":"https://git.kernel.org/stable/c/1c9aca1787e8395a2c59fef20e914467958969c5"},{"url":"https://git.kernel.org/stable/c/e8785404de06a69d89dcdd1e9a0b6ea42dc6d327"}],"title":"Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40213","datePublished":"2025-11-24T15:59:44.000Z","dateReserved":"2025-04-16T07:20:57.179Z","dateUpdated":"2026-07-30T06:01:30.120Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-11-24 16:15:49","lastModifiedDate":"2026-07-30 06:24:18","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40213","Ordinal":"1","Title":"Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complet","CVE":"CVE-2025-40213","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40213","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complete\n\nThere is a BUG: KASAN: stack-out-of-bounds in set_mesh_sync due to\nmemcpy from badly declared on-stack flexible array.\n\nAnother crash is in set_mesh_complete() due to double list_del via\nmgmt_pending_valid + mgmt_pending_remove.\n\nUse DEFINE_FLEX to declare the flexible array right, and don't memcpy\noutside bounds.\n\nAs mgmt_pending_valid removes the cmd from list, use mgmt_pending_free,\nand also report status on error.","Type":"Description","Title":"Bluetooth: MGMT: fix crash in set_mesh_sync and set_mesh_complet"}]}}}