{"id":51025,"date":"2026-05-03T02:06:06","date_gmt":"2026-05-03T02:06:06","guid":{"rendered":"http:\/\/localhost\/?p=51025"},"modified":"2026-05-03T02:06:06","modified_gmt":"2026-05-03T02:06:06","slug":"crypto-ccp-dont-attempt-to-copy-csr-to-userspace-if-psp-command-failed","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=51025","title":{"rendered":"crypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:\\n\\ncrypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed\\n\\nWhen retrieving the PEK CSR, don&#8217;t attempt to copy the blob to userspace\\nif the firmware command failed.  If the failure was due to an invalid\\nlength, i.e. the userspace buffer+length was too small, copying the number\\nof bytes _firmware_ requires will overflow the kernel-allocated buffer and\\nleak data to userspace.\\n\\n  BUG: KASAN: slab-out-of-bounds in instrument_copy_to_user ..\/include\/linux\/instrumented.h:129 [inline]\\n  BUG: KASAN: slab-out-of-bounds in _inline_copy_to_user ..\/include\/linux\/uaccess.h:205 [inline]\\n  BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x66\/0xa0 ..\/lib\/usercopy.c:26\\n  Read of size 2084 at addr ffff898144612e20 by task syz.9.219\/21405\\n\\n  CPU: 14 UID: 0 PID: 21405 Comm: syz.9.219 Tainted: G     U     O        7.0.0-smp-DEV #28 PREEMPTLAZY\\n  Tainted: [U]=USER, [O]=OOT_MODULE\\n  Hardware name: Google, Inc. Arcadia_IT_80\/Arcadia_IT_80, BIOS 12.62.0-0 11\/19\/2025\\n  Call Trace:\\n   \\u003cTASK\\u003e\\n   dump_stack_lvl+0xc5\/0x110 ..\/lib\/dump_stack.c:120\\n   print_address_description ..\/mm\/kasan\/report.c:378 [inline]\\n   print_report+0xbc\/0x260 ..\/mm\/kasan\/report.c:482\\n   kasan_report+0xa2\/0xe0 ..\/mm\/kasan\/report.c:595\\n   check_region_inline ..\/mm\/kasan\/generic.c:-1 [inline]\\n   kasan_check_range+0x264\/0x2c0 ..\/mm\/kasan\/generic.c:200\\n   instrument_copy_to_user ..\/include\/linux\/instrumented.h:129 [inline]\\n   _inline_copy_to_user ..\/include\/linux\/uaccess.h:205 [inline]\\n   _copy_to_user+0x66\/0xa0 ..\/lib\/usercopy.c:26\\n   copy_to_user ..\/include\/linux\/uaccess.h:236 [inline]\\n   sev_ioctl_do_pek_csr+0x31f\/0x590 ..\/drivers\/crypto\/ccp\/sev-dev.c:1872\\n   sev_ioctl+0x3a4\/0x490 ..\/drivers\/crypto\/ccp\/sev-dev.c:2562\\n   vfs_ioctl ..\/fs\/ioctl.c:51 [inline]\\n   __do_sys_ioctl ..\/fs\/ioctl.c:597 [inline]\\n   __se_sys_ioctl+0x11d\/0x1b0 ..\/fs\/ioctl.c:583\\n   do_syscall_x64 ..\/arch\/x86\/entry\/syscall_64.c:63 [inline]\\n   do_syscall_64+0xe0\/0x800 ..\/arch\/x86\/entry\/syscall_64.c:94\\n   entry_SYSCALL_64_after_hwframe+0x76\/0x7e\\n   \\u003c\/TASK\\u003e\\n\\nWARN if the driver says the command succeeded, but the firmware error code\\nsays otherwise, as __sev_do_cmd_locked() is expected to return -EIO on any\\nfirwmware error.&#8221;,&#8221;published&#8221;:&#8221;2026-05-01T13:55:59.520Z&#8221;,&#8221;modified&#8221;:&#8221;2026-05-03T05:45:24.567Z&#8221;,&#8221;type&#8221;:&#8221;cve&#8221;,&#8221;title&#8221;:&#8221;crypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed&#8221;,&#8221;source&#8221;:&#8221;Linux&#8221;,&#8221;references&#8221;:&#8221;https:\/\/git.kernel.org\/stable\/c\/607ba280f2adb5092cf5386c3935afac2ca0031a\\nhttps:\/\/git.kernel.org\/stable\/c\/59e9ae81f8670ccc780bc75f45a355736f640ec9\\nhttps:\/\/git.kernel.org\/stable\/c\/111dcc6d0f016076745824a787d25609d0022f4c\\nhttps:\/\/git.kernel.org\/stable\/c\/3b4fd8f15765d9a3105b834dba8a05d025e5e16e\\nhttps:\/\/git.kernel.org\/stable\/c\/abe4a6d6f606113251868c2c4a06ba904bb41eed&#8221;,&#8221;id&#8221;:&#8221;CVE-2026-31699&#8243;,&#8221;bulletinFamily&#8221;:&#8221;&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:null,&#8221;sourceData&#8221;:&#8221;Linux Linux e799035609e1526761aa2f896a974b233d04d36d\\nLinux Linux e799035609e1526761aa2f896a974b233d04d36d\\nLinux Linux e799035609e1526761aa2f896a974b233d04d36d\\nLinux Linux e799035609e1526761aa2f896a974b233d04d36d\\nLinux Linux e799035609e1526761aa2f896a974b233d04d36d\\nLinux Linux 4.16&#8243;,&#8221;sourceHref&#8221;:&#8221;&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:7.1,&#8221;severity&#8221;:&#8221;HIGH&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:L\/AC:L\/PR:L\/UI:N\/S:U\/C:H\/I:N\/A:H&#8221;,&#8221;version&#8221;:&#8221;3.1&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;&#8221;,&#8221;category_name&#8221;:&#8221;CVE&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;Linux&#8221;,&#8221;version&#8221;:&#8221;e799035609e1526761aa2f896a974b233d04d36d&#8221;,&#8221;vendor&#8221;:&#8221;Linux&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:\\n\\ncrypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed\\n\\nWhen retrieving the PEK&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6,8,50,12,15,13,7,11,5],"class_list":["post-51025","post","type-post","status-publish","format-standard","hentry","category-category_cve","tag-cve","tag-cvss","tag-cvss-71","tag-exploit","tag-high","tag-news","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>crypto: ccp: Don&#039;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=51025\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"crypto: ccp: Don&#039;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:nncrypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failednnWhen retrieving the PEK...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=51025\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-03T02:06:06+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"crypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699\",\"datePublished\":\"2026-05-03T02:06:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025\"},\"wordCount\":657,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"CVSS-7.1\",\"exploit\",\"HIGH\",\"news\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_cve\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=51025#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025\",\"name\":\"crypto: ccp: Don't attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-05-03T02:06:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=51025\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51025#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"crypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"crypto: ccp: Don't attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=51025","og_locale":"en_US","og_type":"article","og_title":"crypto: ccp: Don't attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:nncrypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failednnWhen retrieving the PEK...","og_url":"https:\/\/zero.redgem.net\/?p=51025","og_site_name":"zero redgem","article_published_time":"2026-05-03T02:06:06+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=51025#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=51025"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"crypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699","datePublished":"2026-05-03T02:06:06+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=51025"},"wordCount":657,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","CVSS-7.1","exploit","HIGH","news","Security","tapic","Vulnerability"],"articleSection":["category_cve"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=51025#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=51025","url":"https:\/\/zero.redgem.net\/?p=51025","name":"crypto: ccp: Don't attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-05-03T02:06:06+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=51025#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=51025"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=51025#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"crypto: ccp: Don&#8217;t attempt to copy CSR to userspace if PSP command failed_CVE-2026-31699"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/51025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51025"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/51025\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}