{"id":"CVE-2025-38675","summary":"xfrm: state: initialize state_ptrs earlier in xfrm_state_find","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: state: initialize state_ptrs earlier in xfrm_state_find\n\nIn case of preemption, xfrm_state_look_at will find a different\npcpu_id and look up states for that other CPU. If we matched a state\nfor CPU2 in the state_cache while the lookup started on CPU1, we will\njump to \"found\", but the \"best\" state that we got will be ignored and\nwe will enter the \"acquire\" block. This block uses state_ptrs, which\nisn't initialized at this point.\n\nLet's initialize state_ptrs just after taking rcu_read_lock. This will\nalso prevent a possible misuse in the future, if someone adjusts this\nfunction.","modified":"2026-03-20T12:42:58.444229Z","published":"2025-08-22T16:04:12.688Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38675.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/463562f9591742be62ddde3b426a0533ed496955"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6bf2daafc51bcb9272c0fdff2afd38217337d0d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94d077c331730510d5611b438640a292097341f0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38675.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38675"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a16871c7832ea6435abb6e0b58289ae7dcb7e4fc"},{"fixed":"6bf2daafc51bcb9272c0fdff2afd38217337d0d3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e952837f3ddb0ff726d5b582aa1aad9aa38d024d"},{"fixed":"463562f9591742be62ddde3b426a0533ed496955"},{"fixed":"94d077c331730510d5611b438640a292097341f0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"b86dc510308d7a8955f3f47a4fea4bef887653e4"},{"last_affected":"dd4c2a174994238d55ab54da2545543d36f4e0d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38675.json"}}],"schema_version":"1.7.5"}