{"id":"CVE-2022-49651","state":"PUBLISHED","title":"srcu: Tighten cleanup_srcu_struct() GP checks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsrcu: Tighten cleanup_srcu_struct() GP checks\n\nCurrently, cleanup_srcu_struct() checks for a grace period in progress,\nbut it does not check for a grace period that has not yet started but\nwhich might start at any time.  Such a situation could result in a\nuse-after-free bug, so this commit adds a check for a grace period that\nis needed but not yet started to cleanup_srcu_struct().","publishedAt":"2025-02-26T02:23:53.496Z","updatedAt":"2026-08-05T08:55:56.162Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"da915ad5cf25b5f5d358dd3670c3378d8ae8c03e","status":"affected","lessThan":"e997dda6502eefbc1032d6b0da7b353c53344b07","versionType":"git"},{"version":"da915ad5cf25b5f5d358dd3670c3378d8ae8c03e","status":"affected","lessThan":"8ed00760203d8018bee042fbfe8e076579be2c2b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/rcu/srcutree.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"5.18.11","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/rcu/srcutree.c"]}],"references":["https://git.kernel.org/stable/c/e997dda6502eefbc1032d6b0da7b353c53344b07","https://git.kernel.org/stable/c/8ed00760203d8018bee042fbfe8e076579be2c2b"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49651.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49651","state":"PUBLISHED","datePublished":"2025-02-26T02:23:53.496Z","dateUpdated":"2026-08-05T08:55:56.162Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:21:30.433Z"},"containers":{"cna":{"title":"srcu: Tighten cleanup_srcu_struct() GP checks","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsrcu: Tighten cleanup_srcu_struct() GP checks\n\nCurrently, cleanup_srcu_struct() checks for a grace period in progress,\nbut it does not check for a grace period that has not yet started but\nwhich might start at any time.  Such a situation could result in a\nuse-after-free bug, so this commit adds a check for a grace period that\nis needed but not yet started to cleanup_srcu_struct()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"da915ad5cf25b5f5d358dd3670c3378d8ae8c03e","status":"affected","lessThan":"e997dda6502eefbc1032d6b0da7b353c53344b07","versionType":"git"},{"version":"da915ad5cf25b5f5d358dd3670c3378d8ae8c03e","status":"affected","lessThan":"8ed00760203d8018bee042fbfe8e076579be2c2b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/rcu/srcutree.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"5.18.11","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/rcu/srcutree.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e997dda6502eefbc1032d6b0da7b353c53344b07"},{"url":"https://git.kernel.org/stable/c/8ed00760203d8018bee042fbfe8e076579be2c2b"}],"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 - cleanup_srcu_struct() is reached via local teardown paths (KVM VM destroy via /dev/kvm, SGX enclave release, HFI1 file close, IPMI user free, module unload), not via remote packet processing.\nAC:L - The UAF is a TOCTOU race between updating srcu_gp_seq_needed and srcu_gp_start; an attacker who can drive concurrent synchronize_srcu/call_srcu and cleanup (e.g., KVM/SGX create-destroy loops) controls both sides and can retry until the window is hit.\nPR:L - Unprivileged users can open /dev/kvm (kvm group) or other user-accessible device nodes and create/destroy objects that init and cleanup dynamic srcu_struct instances; real root or init-namespace CAP_SYS_ADMIN is not required.\nUI:N - Exploitation requires only attacker-controlled syscalls/ioctls on objects they create; no separate victim action is needed.\nS:U - This is a host-kernel UAF enabling privilege escalation within the same kernel authority; it is not a guest-to-host or other cross-boundary escape by itself.\nC:H - Freeing ssp->sda while a grace period may still start yields a use-after-free on per-CPU SRCU state, which can be turned into an arbitrary kernel read primitive.\nI:H - The same UAF on SRCU per-CPU callback/grace-period structures enables heap reuse and arbitrary write / control-flow hijacking in the kernel.\nA:H - Use-after-free of srcu_data during grace-period start or callback processing can oops/panic the kernel even without full exploitation."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:55:56.162Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.18.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49651","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-02-27T18:15:18.409911Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-27T18:22:31.366Z"}}]}}}