{"id":"CVE-2025-40305","aliases":["CVE-2025-40305"],"related":[],"kind":"vulnerability","state":"published","title":"9p/trans_fd: p9_fd_request: kick rx thread if EPOLLIN","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-08T00:46:30.327Z","modified":"2026-10-14T22:10:00.210Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"aaec5a95d59615523db03dd53c2052f0a87beea7","fixed":"242531004d7de8c159f9bfadebe33fe8060b1046","status":"affected"},{"type":"git","introduced":"aaec5a95d59615523db03dd53c2052f0a87beea7","fixed":"e8fe3f07a357c39d429e02ca34f740692d88967a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/242531004d7de8c159f9bfadebe33fe8060b1046","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8fe3f07a357c39d429e02ca34f740692d88967a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40305","url":"https://www.cve.org/CVERecord?id=CVE-2025-40305","licence":"CVE Terms of Use","modified":"2026-05-11T21:46:46.952Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40305","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40305","licence":"Public domain","modified":"2026-10-14T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:08.396Z","epss":{"score":0.00184,"percentile":0.08409,"date":"2026-12-01T12:00:22.000Z"}}