{"id":"CVE-2024-26831","published":"2024-04-17T09:43:54Z","modified":"2026-05-23T15:38:43Z","title":"net/handshake: Fix handshake_req_destroy_test1","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/handshake: Fix handshake_req_destroy_test1\n\nRecently, handshake_req_destroy_test1 started failing:\n\nExpected handshake_req_destroy_test == req, but\n    handshake_req_destroy_test == 0000000000000000\n    req == 0000000060f99b40\nnot ok 11 req_destroy works\n\nThis is because \"sock_release(sock)\" was replaced with \"fput(filp)\"\nto address a memory leak. Note that sock_release() is synchronous\nbut fput() usually delays the final close and clean-up.\n\nThe delay is not consequential in the other cases that were changed\nbut handshake_req_destroy_test1 is testing that handshake_req_cancel()\nfollowed by closing the file actually does call the ->hp_destroy\nmethod. Thus the PTR_EQ test at the end has to be sure that the\nfinal close is complete before it checks the pointer.\n\nWe cannot use a completion here because if ->hp_destroy is never\ncalled (ie, there is an API bug) then the test will hang.\n\nReported by: Guenter Roeck <linux@roeck-us.net>","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00305,"percentile":0.15659,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d74226e03df1bf19848f18344401f254345af912","tags":[]},{"url":"https://git.kernel.org/stable/c/7f97805b8df6e33850e225e6bd3ebd9e246920af","tags":[]},{"url":"https://git.kernel.org/stable/c/4e1d71cabb19ec2586827adfc60d68689c68c194","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.13}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4a0f07d71b0483cc08c03cefa7c85749e187c214, < d74226e03df1bf19848f18344401f254345af912",">= 4a0f07d71b0483cc08c03cefa7c85749e187c214, < 7f97805b8df6e33850e225e6bd3ebd9e246920af",">= 4a0f07d71b0483cc08c03cefa7c85749e187c214, < 4e1d71cabb19ec2586827adfc60d68689c68c194","1751e44980466e3ebc246d22d3ebd422197704b6",">= 6.5.6, < 6.6"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:48:57.699634Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-24093","exploited":false,"provenance":"source"}}