{"id":"CVE-2022-48707","published":"2024-05-21T15:22:48Z","modified":"2026-05-11T18:45:23Z","title":"cxl/region: Fix null pointer dereference for resetting decoder","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/region: Fix null pointer dereference for resetting decoder\n\nNot all decoders have a reset callback.\n\nThe CXL specification allows a host bridge with a single root port to\nhave no explicit HDM decoders. Currently the region driver assumes there\nare none.  As such the CXL core creates a special pass through decoder\ninstance without a commit/reset callback.\n\nPrior to this patch, the ->reset() callback was called unconditionally when\ncalling cxl_region_decode_reset. Thus a configuration with 1 Host Bridge,\n1 Root Port, and one directly attached CXL type 3 device or multiple CXL\ntype 3 devices attached to downstream ports of a switch can cause a null\npointer dereference.\n\nBefore the fix, a kernel crash was observed when we destroy the region, and\na pass through decoder is reset.\n\nThe issue can be reproduced as below,\n    1) create a region with a CXL setup which includes a HB with a\n    single root port under which a memdev is attached directly.\n    2) destroy the region with cxl destroy-region regionX -f.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00205,"percentile":0.10725,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a04c7d062b537ff787d00da95bdfe343260d4beb","tags":[]},{"url":"https://git.kernel.org/stable/c/4fa4302d6dc7de7e8e74dc7405611a2efb4bf54b","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.15}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 176baefb2eb5d7a3ddebe3ff803db1fce44574b5, < a04c7d062b537ff787d00da95bdfe343260d4beb",">= 176baefb2eb5d7a3ddebe3ff803db1fce44574b5, < 4fa4302d6dc7de7e8e74dc7405611a2efb4bf54b"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-23T17:51:43.390258Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53586","exploited":false,"provenance":"source"}}