Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-49767

MEDIUM 5.5EPSS 14%

9p/trans_fd: always use O_NONBLOCK read/write

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0b5e6bd72b8171364616841603a70e4ba9837063; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 9f8554615df668e4bf83294633ee9d232b28ce45; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 7abf40f06a76c0dff42eada10597917e9776fbd4; >= 27979bb2ff748613dba96ae66392a76fb0678527, < b1ad04da7fe4515e2ce2d5f2dcab3b5b6d45614b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < a8e2fc8f7b41fa9d9ca5f624f4e4d34fce5b40a9; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0e07032b4b4724b8ad1003698cb81083c1818999; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 5af16182c5639349415118e9e9aecd8355f7a08b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < ef575281b21e9a34dfae544a187c6aac2ae424a9
  • Anyone running Linux 2.6.17

Vulnerability facts

Affected
Linux >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0b5e6bd72b8171364616841603a70e4ba9837063; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 9f8554615df668e4bf83294633ee9d232b28ce45; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 7abf40f06a76c0dff42eada10597917e9776fbd4; >= 27979bb2ff748613dba96ae66392a76fb0678527, < b1ad04da7fe4515e2ce2d5f2dcab3b5b6d45614b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < a8e2fc8f7b41fa9d9ca5f624f4e4d34fce5b40a9; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0e07032b4b4724b8ad1003698cb81083c1818999; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 5af16182c5639349415118e9e9aecd8355f7a08b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < ef575281b21e9a34dfae544a187c6aac2ae424a9; Linux 2.6.17
Fixed in
Linux 0b5e6bd72b8171364616841603a70e4ba9837063, Linux 9f8554615df668e4bf83294633ee9d232b28ce45, Linux 7abf40f06a76c0dff42eada10597917e9776fbd4, Linux 0e07032b4b4724b8ad1003698cb81083c1818999, Linux 5af16182c5639349415118e9e9aecd8355f7a08b
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: 9p/trans_fd: always use O_NONBLOCK read/write syzbot is reporting hung task at p9_fd_close() [1], for p9_mux_poll_stop() from p9_conn_destroy() from p9_fd_close() is failing to interrupt already started kernel_read() from p9_fd_read() from p9_read_work() and/or kernel_write() from p9_fd_write() from p9_write_work() requests. Since p9_socket_open() sets O_NONBLOCK flag, p9_mux_poll_stop() does not need to interrupt kernel_read()/kernel_write(). However, since p9_fd_open() does not set O_NONBLOCK flag, but pipe blocks unless signal is pending, p9_mux_poll_stop() needs to interrupt kernel_read()/kernel_write() when the file descriptor refers to a pipe. In other words, pipe file descriptor needs to be handled as if socket file descriptor. We somehow need to interrupt kernel_read()/kernel_write() on pipes. A minimal change, which this patch is doing, is to set O_NONBLOCK flag from p9_fd_open(), for O_NONBLOCK flag does not affect reading/writing of regular files. But this approach changes O_NONBLOCK flag on userspace- supplied file descriptors (which might break userspace programs), and O_NONBLOCK flag could be changed by userspace. It would be possible to set O_NONBLOCK flag every time p9_fd_read()/p9_fd_write() is invoked, but still remains small race window for clearing O_NONBLOCK flag. If we don't want to manipulate O_NONBLOCK flag, we might be able to surround kernel_read()/kernel_write() with set_thread_flag(TIF_SIGPENDING) and recalc_sigpending(). Since p9_read_work()/p9_write_work() works are processed by kernel threads which process global system_wq workqueue, signals could not be delivered from remote threads when p9_mux_poll_stop() from p9_conn_destroy() from p9_fd_close() is called. Therefore, calling set_thread_flag(TIF_SIGPENDING)/recalc_sigpending() every time would be needed if we count on signals for making kernel_read()/kernel_write() non-blocking. [Dominique: add comment at Christian's suggestion]

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 27979bb2ff748613dba96ae66392a76fb0678527, < 0b5e6bd72b8171364616841603a70e4ba9837063; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 9f8554615df668e4bf83294633ee9d232b28ce45; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 7abf40f06a76c0dff42eada10597917e9776fbd4; >= 27979bb2ff748613dba96ae66392a76fb0678527, < b1ad04da7fe4515e2ce2d5f2dcab3b5b6d45614b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < a8e2fc8f7b41fa9d9ca5f624f4e4d34fce5b40a9; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0e07032b4b4724b8ad1003698cb81083c1818999; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 5af16182c5639349415118e9e9aecd8355f7a08b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < ef575281b21e9a34dfae544a187c6aac2ae424a9—cvelist
Linux2.6.17—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-49767. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49767.md
Affected: Linux >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0b5e6bd72b8171364616841603a70e4ba9837063; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 9f8554615df668e4bf83294633ee9d232b28ce45; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 7abf40f06a76c0dff42eada10597917e9776fbd4; >= 27979bb2ff748613dba96ae…
Fixed in: Linux 0b5e6bd72b8171364616841603a70e4ba9837063, Linux 9f8554615df668e4bf83294633ee9d232b28ce45, Linux 7abf40f06a76c0dff42eada10597917e9776fbd4, Linux 0e07032b4b4724b8ad1003698cb81083c1818999, Linux 5af16182c5639349415118e9e9aecd8355f7a08b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-49767 being exploited?

There is no confirmed exploitation: CVE-2022-49767 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-49767?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2022-49767?

Linux >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0b5e6bd72b8171364616841603a70e4ba9837063; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 9f8554615df668e4bf83294633ee9d232b28ce45; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 7abf40f06a76c0dff42eada10597917e9776fbd4; >= 27979bb2ff748613dba96ae66392a76fb0678527, < b1ad04da7fe4515e2ce2d5f2dcab3b5b6d45614b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < a8e2fc8f7b41fa9d9ca5f624f4e4d34fce5b40a9; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 0e07032b4b4724b8ad1003698cb81083c1818999; >= 27979bb2ff748613dba96ae66392a76fb0678527, < 5af16182c5639349415118e9e9aecd8355f7a08b; >= 27979bb2ff748613dba96ae66392a76fb0678527, < ef575281b21e9a34dfae544a187c6aac2ae424a9; Linux 2.6.17.

Is there a fix for CVE-2022-49767?

Yes. Fixed in Linux 0b5e6bd72b8171364616841603a70e4ba9837063, Linux 9f8554615df668e4bf83294633ee9d232b28ce45, Linux 7abf40f06a76c0dff42eada10597917e9776fbd4, Linux 0e07032b4b4724b8ad1003698cb81083c1818999, Linux 5af16182c5639349415118e9e9aecd8355f7a08b. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2022-49767?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors