{"id":"CVE-2023-54041","state":"PUBLISHED","title":"io_uring: fix memory leak when removing provided buffers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix memory leak when removing provided buffers\n\nWhen removing provided buffers, io_buffer structs are not being disposed\nof, leading to a memory leak. They can't be freed individually, because\nthey are allocated in page-sized groups. They need to be added to some\nfree list instead, such as io_buffers_cache. All callers already hold\nthe lock protecting it, apart from when destroying buffers, so had to\nextend the lock there.","publishedAt":"2025-12-24T10:56:06.858Z","updatedAt":"2026-05-11T19:54:17.138Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cc3cec8367cba76a8ae4c271eba8450f3efc1ba3","status":"affected","lessThan":"ac48787f58d1068f4e06d627c1135784d64b4c72","versionType":"git"},{"version":"cc3cec8367cba76a8ae4c271eba8450f3efc1ba3","status":"affected","lessThan":"c117c15927772d1624c29c092b6bd3f47c7faa48","versionType":"git"},{"version":"cc3cec8367cba76a8ae4c271eba8450f3efc1ba3","status":"affected","lessThan":"b4a72c0589fdea6259720375426179888969d6a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/io_uring.c","io_uring/kbuf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.24","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.11","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/io_uring.c","io_uring/kbuf.c"]}],"references":["https://git.kernel.org/stable/c/ac48787f58d1068f4e06d627c1135784d64b4c72","https://git.kernel.org/stable/c/c117c15927772d1624c29c092b6bd3f47c7faa48","https://git.kernel.org/stable/c/b4a72c0589fdea6259720375426179888969d6a2"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54041.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54041","state":"PUBLISHED","datePublished":"2025-12-24T10:56:06.858Z","dateUpdated":"2026-05-11T19:54:17.138Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T10:53:46.181Z"},"containers":{"cna":{"title":"io_uring: fix memory leak when removing provided buffers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix memory leak when removing provided buffers\n\nWhen removing provided buffers, io_buffer structs are not being disposed\nof, leading to a memory leak. They can't be freed individually, because\nthey are allocated in page-sized groups. They need to be added to some\nfree list instead, such as io_buffers_cache. All callers already hold\nthe lock protecting it, apart from when destroying buffers, so had to\nextend the lock there."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cc3cec8367cba76a8ae4c271eba8450f3efc1ba3","status":"affected","lessThan":"ac48787f58d1068f4e06d627c1135784d64b4c72","versionType":"git"},{"version":"cc3cec8367cba76a8ae4c271eba8450f3efc1ba3","status":"affected","lessThan":"c117c15927772d1624c29c092b6bd3f47c7faa48","versionType":"git"},{"version":"cc3cec8367cba76a8ae4c271eba8450f3efc1ba3","status":"affected","lessThan":"b4a72c0589fdea6259720375426179888969d6a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/io_uring.c","io_uring/kbuf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.24","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.11","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/io_uring.c","io_uring/kbuf.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ac48787f58d1068f4e06d627c1135784d64b4c72"},{"url":"https://git.kernel.org/stable/c/c117c15927772d1624c29c092b6bd3f47c7faa48"},{"url":"https://git.kernel.org/stable/c/b4a72c0589fdea6259720375426179888969d6a2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:54:17.138Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.2.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}