{"id":72295,"date":"2025-10-24T16:45:47","date_gmt":"2025-10-24T13:15:47","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-40022-crypto-af_alg-fix-incorrect-boolean-values-in-af_alg_ctx\/"},"modified":"2025-10-24T16:45:47","modified_gmt":"2025-10-24T13:15:47","slug":"cve-2025-40022-crypto-af_alg-fix-incorrect-boolean-values-in-af_alg_ctx","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-40022-crypto-af_alg-fix-incorrect-boolean-values-in-af_alg_ctx\/","title":{"rendered":"CVE-2025-40022 &#8211; crypto: af_alg &#8211; Fix incorrect boolean values in af_alg_ctx"},"content":{"rendered":"<p>CVE ID : CVE-2025-40022<\/p>\n<p>Published :  Oct. 24, 2025, 1:15 p.m. | 1\u00a0hour, 27\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>crypto: af_alg &#8211; Fix incorrect boolean values in af_alg_ctx<\/p>\n<p>Commit 1b34cbbf4f01 (&#8220;crypto: af_alg &#8211; Disallow concurrent writes in<br \/>\naf_alg_sendmsg&#8221;) changed some fields from bool to 1-bit bitfields of<br \/>\ntype u32.<\/p>\n<p>However, some assignments to these fields, specifically &#8216;more&#8217; and<br \/>\n&#8216;merge&#8217;, assign values greater than 1.  These relied on C&#8217;s implicit<br \/>\nconversion to bool, such that zero becomes false and nonzero becomes<br \/>\ntrue.<\/p>\n<p>With a 1-bit bitfields of type u32 instead, mod 2 of the value is taken<br \/>\ninstead, resulting in 0 being assigned in some cases when 1 was intended.<\/p>\n<p>Fix this by restoring the bool type.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-40022 Published : Oct. 24, 2025, 1:15 p.m. | 1\u00a0hour, 27\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: crypto: af_alg &#8211; Fix incorrect boolean values in af_alg_ctx Commit 1b34cbbf4f01 (&#8220;crypto: af_alg &#8211; Disallow concurrent writes in af_alg_sendmsg&#8221;) changed some fields from bool to 1-bit bitfields of &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-72295","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/72295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=72295"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/72295\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=72295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=72295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=72295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}