{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-35827", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-05-17T12:19:12.347Z", "datePublished": "2024-05-17T13:41:09.193Z", "dateUpdated": "2026-08-05T11:30:10.176Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:30:10.176Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/net: fix overflow check in io_recvmsg_mshot_prep()\n\nThe \"controllen\" variable is type size_t (unsigned long). Casting it\nto int could lead to an integer underflow.\n\nThe check_add_overflow() function considers the type of the destination\nwhich is type int. If we add two positive values and the result cannot\nfit in an integer then that's counted as an overflow.\n\nHowever, if we cast \"controllen\" to an int and it turns negative, then\nnegative values *can* fit into an int type so there is no overflow.\n\nGood: 100 + (unsigned long)-4 = 96 <-- overflow\n Bad: 100 + (int)-4 = 96 <-- no overflow\n\nI deleted the cast of the sizeof() as well. That's not a bug but the\ncast is unnecessary." } ], "metrics": [ { "cvssV3_1": { "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" }, "scenarios": [ { "lang": "en", "value": "AV:L - The vulnerability is reached only through the io_uring syscall interface (io_uring_setup/io_uring_enter submitting an IORING_OP_RECVMSG SQE), which requires local access to the machine. Per kernel scoring guidance io_uring is Local.\nAC:L - The attacker directly supplies the malicious msg_controllen value in their own user_msghdr, and the integer truncation is fully deterministic — no race, no memory-layout dependency, no timing window. A single submitted SQE reliably bypasses the overflow check.\nPR:L - Any unprivileged local user who can call io_uring_setup() can reach the path; no capability, no CAP_NET_ADMIN, and no root is required, and the socket used can be an ordinary user-created socket. Only the ability to issue syscalls is needed, so basic user privileges suffice.\nUI:N - The attacker submits the crafted recvmsg SQE entirely on their own; no victim action, no filesystem mount, and no privileged process cooperation is needed to trigger the bug.\nS:U - The bypassed check and its consequences stay within the same security authority — the io_uring context and the address space of the submitting task. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - The bypassed size validation lets the kernel emit io_uring_recvmsg_out headers, sockaddr_storage contents, and control-message data (timestamps, IP_PKTINFO, SCM payloads) into memory beyond the region the request validated, and MSG_CTRUNC is never raised so the truncation is silently hidden. Choosing the higher option for a defeated bounds check on a receive path.\nI:H - The integer underflow defeats the length guard entirely — hdr can be driven to zero so a zero-length provided buffer is accepted, after which up to ~144 bytes of header plus unbounded cmsg data are written past the validated bounds. This is an attacker-controlled out-of-bounds write with an attacker-chosen offset and length.\nA:H - With msg_controllen set to a near-2^64 value and the header length invariant broken, the recvmsg path operates on corrupted size state and writes outside the validated buffer, producing faults and corrupted request accounting that can be triggered repeatedly by an unprivileged user. Scoring the higher option consistent with a memory-safety violation." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "io_uring/net.c" ], "versions": [ { "version": "9b0fc3c054ff2eb13753104884f1045b5bb3a627", "lessThan": "868ec868616438df487b9e2baa5a99f8662cc47c", "status": "affected", "versionType": "git" }, { "version": "9b0fc3c054ff2eb13753104884f1045b5bb3a627", "lessThan": "59a534690ecc3af72c6ab121aeac1237a4adae66", "status": "affected", "versionType": "git" }, { "version": "9b0fc3c054ff2eb13753104884f1045b5bb3a627", "lessThan": "0c8c74bb59e7d77554016efc34c2d10376985e5e", "status": "affected", "versionType": "git" }, { "version": "9b0fc3c054ff2eb13753104884f1045b5bb3a627", "lessThan": "b6563ad0d599110bd5cf8f56c47d279c3ed796fe", "status": "affected", "versionType": "git" }, { "version": "9b0fc3c054ff2eb13753104884f1045b5bb3a627", "lessThan": "8ede3db5061bb1fe28e2c9683329aafa89d2b1b4", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "io_uring/net.c" ], "versions": [ { "version": "6.0", "status": "affected" }, { "version": "0", "lessThan": "6.0", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.83", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.23", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.7.11", "lessThanOrEqual": "6.7.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.8.2", "lessThanOrEqual": "6.8.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.9", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.1.83" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.6.23" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.7.11" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.8.2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0", "versionEndExcluding": "6.9" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/868ec868616438df487b9e2baa5a99f8662cc47c" }, { "url": "https://git.kernel.org/stable/c/59a534690ecc3af72c6ab121aeac1237a4adae66" }, { "url": "https://git.kernel.org/stable/c/0c8c74bb59e7d77554016efc34c2d10376985e5e" }, { "url": "https://git.kernel.org/stable/c/b6563ad0d599110bd5cf8f56c47d279c3ed796fe" }, { "url": "https://git.kernel.org/stable/c/8ede3db5061bb1fe28e2c9683329aafa89d2b1b4" } ], "title": "io_uring/net: fix overflow check in io_recvmsg_mshot_prep()", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "title": "CISA ADP Vulnrichment", "metrics": [ { "other": { "type": "ssvc", "content": { "id": "CVE-2024-35827", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2024-05-17T15:12:59.146861Z" } } } ], "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-06-04T17:34:28.876Z" } }, { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-02T03:21:48.467Z" }, "title": "CVE Program Container", "references": [ { "url": "https://git.kernel.org/stable/c/868ec868616438df487b9e2baa5a99f8662cc47c", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/59a534690ecc3af72c6ab121aeac1237a4adae66", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/0c8c74bb59e7d77554016efc34c2d10376985e5e", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/b6563ad0d599110bd5cf8f56c47d279c3ed796fe", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/8ede3db5061bb1fe28e2c9683329aafa89d2b1b4", "tags": [ "x_transferred" ] } ] } ] } }