{"id":"CVE-2025-40305","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-12-08T01:16:02.700","lastModified":"2026-10-14T22:10:00.210","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\n9p/trans_fd: p9_fd_request: kick rx thread if EPOLLIN\n\np9_read_work() doesn't set Rworksched and doesn't do schedule_work(m->rq)\nif list_empty(&m->req_list).\n\nHowever, if the pipe is full, we need to read more data and this used to\nwork prior to commit aaec5a95d59615 (\"pipe_read: don't wake up the writer\nif the pipe is still full\").\n\np9_read_work() does p9_fd_read() -> ... -> anon_pipe_read() which (before\nthe commit above) triggered the unnecessary wakeup. This wakeup calls\np9_pollwake() which kicks p9_poll_workfn() -> p9_poll_mux(), p9_poll_mux()\nwill notice EPOLLIN and schedule_work(&m->rq).\n\nThis no longer happens after the optimization above, change p9_fd_request()\nto use p9_poll_mux() instead of only checking for EPOLLOUT."},{"lang":"es","value":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\n9p/trans_fd: p9_fd_request: activar el hilo rx si EPOLLIN\n\np9_read_work() no establece Rworksched y no ejecuta schedule_work(m -> rq) si list_empty(&m -> req_list).\n\nSin embargo, si la tubería está llena, necesitamos leer más datos y esto solía funcionar antes del commit aaec5a95d59615 ('pipe_read: no despertar al escritor si la tubería todavía está llena').\n\np9_read_work() ejecuta p9_fd_read()  ->  ...  ->  anon_pipe_read() lo cual (antes del commit anterior) desencadenaba la activación innecesaria. Esta activación llama a p9_pollwake() que activa p9_poll_workfn()  ->  p9_poll_mux(), p9_poll_mux() notará EPOLLIN y schedule_work(&m -> rq).\n\nEsto ya no ocurre después de la optimización anterior, cambiar p9_fd_request() para que use p9_poll_mux() en lugar de solo verificar EPOLLOUT."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["net/9p/trans_fd.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"aaec5a95d59615523db03dd53c2052f0a87beea7","lessThan":"242531004d7de8c159f9bfadebe33fe8060b1046","versionType":"git","status":"affected"},{"version":"aaec5a95d59615523db03dd53c2052f0a87beea7","lessThan":"e8fe3f07a357c39d429e02ca34f740692d88967a","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["net/9p/trans_fd.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.14","status":"affected"},{"version":"0","lessThan":"6.14","versionType":"semver","status":"unaffected"},{"version":"6.17.8","lessThanOrEqual":"6.17.*","versionType":"semver","status":"unaffected"},{"version":"6.18","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/242531004d7de8c159f9bfadebe33fe8060b1046","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e8fe3f07a357c39d429e02ca34f740692d88967a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}