{"id":"CVE-2022-49643","state":"PUBLISHED","title":"ima: Fix a potential integer overflow in ima_appraise_measurement","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: Fix a potential integer overflow in ima_appraise_measurement\n\nWhen the ima-modsig is enabled, the rc passed to evm_verifyxattr() may be\nnegative, which may cause the integer overflow problem.","publishedAt":"2025-02-26T02:23:49.658Z","updatedAt":"2026-08-05T08:55:52.938Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"388f3df7c3c8b7f2a32b9ae0a9b2f9f6ad3b1b77","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"831e190175f10652be93b08436cc7bf2e62e4bb6","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"c8d5d81940938b5f6c0f495ca9538e7740416f30","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"640cea4c2839a821adfbb703b590a5928abe9286","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"d2ee2cfc4aa85ff6a2a3b198a3a524ec54e3d999","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/integrity/ima/ima_appraise.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.4","versionType":"semver"},{"version":"5.4.207","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.132","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.56","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.13","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":["security/integrity/ima/ima_appraise.c"]}],"references":["https://git.kernel.org/stable/c/388f3df7c3c8b7f2a32b9ae0a9b2f9f6ad3b1b77","https://git.kernel.org/stable/c/831e190175f10652be93b08436cc7bf2e62e4bb6","https://git.kernel.org/stable/c/c8d5d81940938b5f6c0f495ca9538e7740416f30","https://git.kernel.org/stable/c/640cea4c2839a821adfbb703b590a5928abe9286","https://git.kernel.org/stable/c/d2ee2cfc4aa85ff6a2a3b198a3a524ec54e3d999"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49643.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49643","state":"PUBLISHED","datePublished":"2025-02-26T02:23:49.658Z","dateUpdated":"2026-08-05T08:55:52.938Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:21:30.431Z"},"containers":{"cna":{"title":"ima: Fix a potential integer overflow in ima_appraise_measurement","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nima: Fix a potential integer overflow in ima_appraise_measurement\n\nWhen the ima-modsig is enabled, the rc passed to evm_verifyxattr() may be\nnegative, which may cause the integer overflow problem."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"388f3df7c3c8b7f2a32b9ae0a9b2f9f6ad3b1b77","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"831e190175f10652be93b08436cc7bf2e62e4bb6","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"c8d5d81940938b5f6c0f495ca9538e7740416f30","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"640cea4c2839a821adfbb703b590a5928abe9286","versionType":"git"},{"version":"39b07096364a42c516415d5f841069e885234e61","status":"affected","lessThan":"d2ee2cfc4aa85ff6a2a3b198a3a524ec54e3d999","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/integrity/ima/ima_appraise.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.4","versionType":"semver"},{"version":"5.4.207","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.132","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.56","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.13","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":["security/integrity/ima/ima_appraise.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/388f3df7c3c8b7f2a32b9ae0a9b2f9f6ad3b1b77"},{"url":"https://git.kernel.org/stable/c/831e190175f10652be93b08436cc7bf2e62e4bb6"},{"url":"https://git.kernel.org/stable/c/c8d5d81940938b5f6c0f495ca9538e7740416f30"},{"url":"https://git.kernel.org/stable/c/640cea4c2839a821adfbb703b590a5928abe9286"},{"url":"https://git.kernel.org/stable/c/d2ee2cfc4aa85ff6a2a3b198a3a524ec54e3d999"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable path is reached only through local IMA hooks (exec, open/mmap, module/firmware read) in process_measurement → ima_appraise_measurement, not via network packet processing.\nAC:L - On a system with ima-modsig appraisal enabled, an attacker can reliably craft a modsig-bearing file and drive the negative-xattr_len path (including a self-controlled getxattr TOCTOU that leaves a non-NULL buffer), with no dependency on victim-only state.\nPR:L - An unprivileged local user can trigger IMA appraisal of files they control when policy uses appraise_type=imasig|modsig; CAP_SYS_ADMIN is not required to reach the buggy call.\nUI:N - Exploitation does not require a separate user to perform an action; the attacker triggers appraisal themselves via open/exec of their crafted file.\nS:U - Impact stays within the kernel’s integrity/IMA authority; this is not a VM escape, IOMMU bypass, or other cross-boundary break.\nC:H - When the oversized length reaches crypto_shash_update with a non-NULL xattr buffer, the kernel performs an unbounded out-of-bounds read over adjacent memory, which per scoring guidance is Confidentiality High.\nI:N - The misuse is an out-of-bounds read into a hash comparison; it does not provide a write primitive or control-flow hijack, and a failed EVM HMAC takes the fail-closed INTEGRITY_FAIL path.\nA:H - The multi-gigabyte OOB read through crypto_shash_update reliably faults into unmapped memory and causes a kernel oops/panic, fully denying availability."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:55:52.938Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.4.207"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.10.132"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.15.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.18.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49643","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:33:55.240399Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","type":"CWE","description":"CWE-190 Integer Overflow or Wraparound"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:36:48.850Z"}}]}}}