{"id":"CVE-2022-49895","published":"2025-05-01T14:10:37Z","modified":"2026-05-11T19:08:49Z","title":"cxl/region: Fix decoder allocation crash","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/region: Fix decoder allocation crash\n\nWhen an intermediate port's decoders have been exhausted by existing\nregions, and creating a new region with the port in question in it's\nhierarchical path is attempted, cxl_port_attach_region() fails to find a\nport decoder (as would be expected), and drops into the failure / cleanup\npath.\n\nHowever, during cleanup of the region reference, a sanity check attempts\nto dereference the decoder, which in the above case didn't exist. This\ncauses a NULL pointer dereference BUG.\n\nTo fix this, refactor the decoder allocation and de-allocation into\nhelper routines, and in this 'free' routine, check that the decoder,\n@cxld, is valid before attempting any operations on it.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0017,"percentile":0.06616,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/c6813b5610ac53af73edd87a660d23a0511faa47","tags":[]},{"url":"https://git.kernel.org/stable/c/71ee71d7adcba648077997a29a91158d20c40b09","tags":[]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":1.32},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 384e624bb211b406db40edc900bb51af8bb267d0, < c6813b5610ac53af73edd87a660d23a0511faa47",">= 384e624bb211b406db40edc900bb51af8bb267d0, < 71ee71d7adcba648077997a29a91158d20c40b09"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T16:02:07.580579Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-12884","exploited":false,"provenance":"source"}}