{"id":"CVE-2023-54015","state":"PUBLISHED","title":"net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Devcom, fix error flow in mlx5_devcom_register_device\n\nIn case devcom allocation is failed, mlx5 is always freeing the priv.\nHowever, this priv might have been allocated by a different thread,\nand freeing it might lead to use-after-free bugs.\nFix it by freeing the priv only in case it was allocated by the\nrunning thread.","publishedAt":"2025-12-24T10:55:47.030Z","updatedAt":"2026-05-11T19:53:38.638Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"3dfc1004d9afbf689087ae1eafd88f55481984c7","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"d4d10a6df1529b3f446cdada5c25e065f4712756","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"1e755065368000205e6683fa924b2654e99f573b","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"eaa365c10459052cbe3e44caa4ad760cb93bd435","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"a3a516caef2c5be2f4d171890a8b3415bfab4e5e","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"af87194352cad882d787d06fb7efa714acd95427","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.244","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.181","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.114","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.31","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.5","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c"]}],"references":["https://git.kernel.org/stable/c/3dfc1004d9afbf689087ae1eafd88f55481984c7","https://git.kernel.org/stable/c/d4d10a6df1529b3f446cdada5c25e065f4712756","https://git.kernel.org/stable/c/1e755065368000205e6683fa924b2654e99f573b","https://git.kernel.org/stable/c/eaa365c10459052cbe3e44caa4ad760cb93bd435","https://git.kernel.org/stable/c/a3a516caef2c5be2f4d171890a8b3415bfab4e5e","https://git.kernel.org/stable/c/af87194352cad882d787d06fb7efa714acd95427"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54015.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54015","state":"PUBLISHED","datePublished":"2025-12-24T10:55:47.030Z","dateUpdated":"2026-05-11T19:53:38.638Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T10:53:46.178Z"},"containers":{"cna":{"title":"net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Devcom, fix error flow in mlx5_devcom_register_device\n\nIn case devcom allocation is failed, mlx5 is always freeing the priv.\nHowever, this priv might have been allocated by a different thread,\nand freeing it might lead to use-after-free bugs.\nFix it by freeing the priv only in case it was allocated by the\nrunning thread."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"3dfc1004d9afbf689087ae1eafd88f55481984c7","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"d4d10a6df1529b3f446cdada5c25e065f4712756","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"1e755065368000205e6683fa924b2654e99f573b","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"eaa365c10459052cbe3e44caa4ad760cb93bd435","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"a3a516caef2c5be2f4d171890a8b3415bfab4e5e","versionType":"git"},{"version":"fadd59fc50d010145f251db583c7ccef37393d19","status":"affected","lessThan":"af87194352cad882d787d06fb7efa714acd95427","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.244","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.181","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.114","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.31","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.5","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3dfc1004d9afbf689087ae1eafd88f55481984c7"},{"url":"https://git.kernel.org/stable/c/d4d10a6df1529b3f446cdada5c25e065f4712756"},{"url":"https://git.kernel.org/stable/c/1e755065368000205e6683fa924b2654e99f573b"},{"url":"https://git.kernel.org/stable/c/eaa365c10459052cbe3e44caa4ad760cb93bd435"},{"url":"https://git.kernel.org/stable/c/a3a516caef2c5be2f4d171890a8b3415bfab4e5e"},{"url":"https://git.kernel.org/stable/c/af87194352cad882d787d06fb7efa714acd95427"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:53:38.638Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.4.244"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.10.181"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}