Security Vulnerability Report
中文
CVE-2025-39933 CVSS 5.5 MEDIUM

CVE-2025-39933

Published: 2025-10-04 08:15:46
Last Modified: 2026-03-25 00:51:26
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: let recv_done verify data_offset, data_length and remaining_data_length This is inspired by the related server fixes.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* - VULNERABLE
Linux Kernel < 6.17 (mainline prior to fix)
Linux Kernel stable分支(具体版本取决于发行版)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-39933 PoC - Conceptual demonstration // This vulnerability is in Linux kernel SMB client's recv_done function // The issue is lack of validation for data_offset, data_length, and remaining_data_length #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> // Simulated SMB response header structure struct smb2_transform_header { uint8_t protocol_id[4]; // 0xFE 'S' 'M' 'B' uint32_t header_length; uint64_t session_id; }; // Simulated malicious SMB response with invalid data_offset/data_length struct malicious_smb_response { uint32_t data_offset; // Intentionally set to invalid value uint32_t data_length; // Intentionally set to oversized value uint32_t remaining_data_length; // Intentionally set to invalid value uint8_t payload[256]; }; int main() { struct malicious_smb_response *resp; resp = (struct malicious_smb_response *)malloc(sizeof(struct malicious_smb_response)); if (!resp) { return -1; } // Craft malicious values to trigger the vulnerability // These values would cause out-of-bounds access in recv_done resp->data_offset = 0xFFFFFFFF; // Invalid: exceeds buffer resp->data_length = 0xFFFFFFFF; // Invalid: exceeds buffer resp->remaining_data_length = 0xFFFFFFFF; // Invalid: exceeds buffer memset(resp->payload, 'A', sizeof(resp->payload)); printf("Malicious SMB response crafted\n"); printf("data_offset: 0x%X\n", resp->data_offset); printf("data_length: 0x%X\n", resp->data_length); printf("remaining_data_length: 0x%X\n", resp->remaining_data_length); // In a real exploit, this response would be sent to a Linux SMB client // causing kernel panic or memory corruption in recv_done free(resp); return 0; } // Note: Actual exploitation requires: // 1. A malicious SMB server or MITM position // 2. Linux kernel with vulnerable smb/client code // 3. Triggering recv_done with the crafted response

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-39933", "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "published": "2025-10-04T08:15:46.090", "lastModified": "2026-03-25T00:51:25.600", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: let recv_done verify data_offset, data_length and remaining_data_length\n\nThis is inspired by the related server fixes."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.16", "versionEndExcluding": "6.16.9", "matchCriteriaId": "2710D7BB-EE26-4719-9DAC-76F2DA12894F"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*", "matchCriteriaId": "327D22EF-390B-454C-BD31-2ED23C998A1C"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*", "matchCriteriaId": "C730CD9A-D969-4A8E-9522-162AAF7C0EE9"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*", "matchCriteriaId": "39982C4B-716E-4B2F-8196-FA301F47807D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*", "matchCriteriaId": "340BEEA9-D70D-4290-B502-FBB1032353B1"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*", "matchCriteriaId": "47E4C5C0-079F-4838-971B-8C503D48FCC2"}, {"vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*", "matchCriteriaId": "5A4516A6-C12E-42A4-8C0E-68AEF3264504"}]}]}], "references": [{"url": "https://git.kernel.org/stable/c/581fb78e0388b78911b0c920e4073737090c8b5f", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}, {"url": "https://git.kernel.org/stable/c/f57e53ea252363234f86674db475839e5b87102e", "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "tags": ["Patch"]}]}}