{"id":"CVE-2021-3444","state":"PUBLISHED","title":"Linux kernel bpf verifier incorrect mod32 truncation","description":"The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 (\"bpf: Fix truncation handling for mod32 dst reg wrt zero\") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101.","publishedAt":"2021-03-23T17:45:13.714Z","updatedAt":"2024-09-16T17:27:58.788Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["Linux kernel"],"affected":[{"vendor":"Linux","product":"kernel","versions":[{"version":"trunk","status":"affected","lessThan":"5.12-rc1","versionType":"custom"},{"version":"5.11","status":"affected","lessThan":"5.11.2","versionType":"custom"},{"version":"5.10","status":"affected","lessThan":"5.10.19","versionType":"custom"},{"version":"5.4","status":"affected","lessThan":"5.4.101","versionType":"custom"}]}],"references":["https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809","https://www.openwall.com/lists/oss-security/2021/03/23/2","http://www.openwall.com/lists/oss-security/2021/03/23/2","http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html","https://security.netapp.com/advisory/ntap-20210416-0006/","https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html","http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html"],"weaknesses":["CWE-681"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3444.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-3444","state":"PUBLISHED","datePublished":"2021-03-23T17:45:13.714Z","dateUpdated":"2024-09-16T17:27:58.788Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2021-03-16T00:00:00.000Z"},"containers":{"cna":{"title":"Linux kernel bpf verifier incorrect mod32 truncation","descriptions":[{"lang":"en","value":"The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 (\"bpf: Fix truncation handling for mod32 dst reg wrt zero\") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101."}],"affected":[{"vendor":"Linux","product":"kernel","versions":[{"version":"trunk","status":"affected","lessThan":"5.12-rc1","versionType":"custom"},{"version":"5.11","status":"affected","lessThan":"5.11.2","versionType":"custom"},{"version":"5.10","status":"affected","lessThan":"5.10.19","versionType":"custom"},{"version":"5.4","status":"affected","lessThan":"5.4.101","versionType":"custom"}]}],"references":[{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809","tags":["x_refsource_MISC"]},{"url":"https://www.openwall.com/lists/oss-security/2021/03/23/2","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2021/03/23/2","name":"[oss-security] 20210323 [CVE-2021-3444] Linux kernel bpf verifier incorrect mod32 truncation","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210416-0006/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html","name":"[debian-lts-announce] 20211015 [SECURITY] [DLA 2785-1] linux-4.19 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-681","description":"CWE-681: Incorrect Conversion between Numeric Types","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","dateUpdated":"2021-11-12T18:06:17.000Z","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc"},"credits":[{"lang":"en","value":"De4dCr0w of 360 Alpha Lab"}],"datePublic":"2021-03-23T00:00:00.000Z","solutions":[{"lang":"en","value":"Apply or update to a kernel that contains the commit 9b00f1b78809 (\"bpf: Fix truncation handling for mod32 dst reg wrt zero\")."}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2021-03-23T00:00:00.000Z","ID":"CVE-2021-3444","STATE":"PUBLIC","TITLE":"Linux kernel bpf verifier incorrect mod32 truncation"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"kernel","version":{"version_data":[{"version_affected":"<","version_name":"trunk","version_value":"5.12-rc1"},{"version_affected":"<","version_name":"5.11","version_value":"5.11.2"},{"version_affected":"<","version_name":"5.10","version_value":"5.10.19"},{"version_affected":"<","version_name":"5.4","version_value":"5.4.101"}]}}]},"vendor_name":"Linux"}]}},"credit":[{"lang":"eng","value":"De4dCr0w of 360 Alpha Lab"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"The bpf verifier in the Linux kernel did not properly handle mod32 destination register truncation when the source register was known to be 0. A local attacker with the ability to load bpf programs could use this gain out-of-bounds reads in kernel memory leading to information disclosure (kernel memory), and possibly out-of-bounds writes that could potentially lead to code execution. This issue was addressed in the upstream kernel in commit 9b00f1b78809 (\"bpf: Fix truncation handling for mod32 dst reg wrt zero\") and in Linux stable kernels 5.11.2, 5.10.19, and 5.4.101."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-681: Incorrect Conversion between Numeric Types"}]}]},"references":{"reference_data":[{"name":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809","refsource":"MISC","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809"},{"name":"https://www.openwall.com/lists/oss-security/2021/03/23/2","refsource":"MISC","url":"https://www.openwall.com/lists/oss-security/2021/03/23/2"},{"name":"[oss-security] 20210323 [CVE-2021-3444] Linux kernel bpf verifier incorrect mod32 truncation","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2021/03/23/2"},{"name":"http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html"},{"name":"https://security.netapp.com/advisory/ntap-20210416-0006/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20210416-0006/"},{"name":"[debian-lts-announce] 20211015 [SECURITY] [DLA 2785-1] linux-4.19 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html"},{"name":"http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html"}]},"solution":[{"lang":"en","value":"Apply or update to a kernel that contains the commit 9b00f1b78809 (\"bpf: Fix truncation handling for mod32 dst reg wrt zero\")."}],"source":{"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9b00f1b78809","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.openwall.com/lists/oss-security/2021/03/23/2","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2021/03/23/2","name":"[oss-security] 20210323 [CVE-2021-3444] Linux kernel bpf verifier incorrect mod32 truncation","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://packetstormsecurity.com/files/162117/Kernel-Live-Patch-Security-Notice-LSN-0075-1.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20210416-0006/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/10/msg00010.html","name":"[debian-lts-announce] 20211015 [SECURITY] [DLA 2785-1] linux-4.19 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://packetstormsecurity.com/files/164950/Kernel-Live-Patch-Security-Notice-LSN-0082-1.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T16:53:17.550Z"}}]}}}