{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-40248 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2025-40248 is a high-severity vulnerability in Linux, published on 4 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40248 and fix it if it is affected.\n\nWhat it is: CVE-2025-40248 is a high-severity vulnerability in Linux, published on 4 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-40248 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-40248/ (Markdown: https://insights.sbomify.com/CVE-2025-40248/index.md)","id":"CVE-2025-40248","markdown":"https://insights.sbomify.com/CVE-2025-40248/index.md","name":"CVE-2025-40248","record":{"aliases":["AZL-71396","BELL-CVE-2025-40248","DEBIAN-CVE-2025-40248","GHSA-j4rg-4m7w-4hr3","RHSA-2026:3848","RHSA-2026:3865","RHSA-2026:3866","RHSA-2026:3867","RHSA-2026:3868","RHSA-2026:3873","RHSA-2026:3886","RHSA-2026:3987","ROOT-OS-DEBIAN-11-CVE-2025-40248","ROOT-OS-DEBIAN-12-CVE-2025-40248","ROOT-OS-DEBIAN-13-CVE-2025-40248","ROOT-OS-UBUNTU-2204-CVE-2025-40248","ROOT-OS-UBUNTU-2404-CVE-2025-40248","UBUNTU-CVE-2025-40248"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux kernel vsock","requires_auth":"low_privilege","summary":"A race condition in the Linux kernel vsock implementation allows attackers to cause use-after-free or null pointer dereferences, potentially leading to system crashes or code execution.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Linux","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: Ignore signal/timeout on connect() if already established\n\nDuring connect(), acting on a signal/timeout by disconnecting an already\nestablished socket leads to several issues:\n\n1. connect() invoking vsock_transport_cancel_pkt() -\u003e\n   virtio_transport_purge_skbs() may race with sendmsg() invoking\n   virtio_transport_get_credit(). This results in a permanently elevated\n   `vvs-\u003ebytes_unsent`. Which, in turn, confuses the SOCK_LINGER handling.\n\n2. connect() resetting a connected socket's state may race with socket\n   being placed in a sockmap. A disconnected socket remaining in a sockmap\n   breaks sockmap's assumptions. And gives rise to WARNs.\n\n3. connect() transitioning SS_CONNECTED -\u003e SS_UNCONNECTED allows for a\n   transport change/drop after TCP_ESTABLISHED. Which poses a problem for\n   any simultaneous sendmsg() or connect() and may result in a\n   use-after-free/null-ptr-deref.\n\nDo not disconnect socket on signal/timeout. Keep the logic for unconnected\nsockets: they don't linger, can't be placed in a sockmap, are rejected by\nsendmsg().\n\n[1]: https://lore.kernel.org/netdev/e07fd95c-9a38-4eea-9638-133e38c2ec9b@rbox.co/\n[2]: https://lore.kernel.org/netdev/20250317-vsock-trans-signal-race-v4-0-fc8837f3f1d4@rbox.co/\n[3]: https://lore.kernel.org/netdev/60f1b7db-3099-4f6a-875e-af9f6ef194f6@rbox.co/","ecosystems":["Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.0::baseos","Red Hat:rhel_e4s:9.2::baseos","Red Hat:rhel_eus:9.4::baseos","Red Hat:rhel_eus:9.6::baseos"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"vsock: Ignore signal/timeout on connect() if already established","id":"CVE-2025-40248","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":102,"n_references":8,"next":{"headline":"gpio: cdev: make sure the cdev fd is still active before emitting events","id":"CVE-2025-40249"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_30_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_30_1","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_30_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_30_1-debuginfo","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_30_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_30_1-debugsource","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_40_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_40_1","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_40_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_40_1-debuginfo","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_40_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_40_1-debugsource","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_53_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_53_1","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_53_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_53_1-debuginfo","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_53_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_53_1-debugsource","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_72_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_72_1","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_72_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_72_1-debuginfo","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_72_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_72_1-debugsource","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_85_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_85_1","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_85_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_85_1-debuginfo","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1-2.el8_10"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-553_85_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-553_85_1-debugsource","source":"RHSA-2026:3848"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1-3.el9_7"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-5_14_0-611_9_1","purl":"pkg:rpm/redhat/kpatch-patch-5_14_0-611_9_1","source":"RHSA-2026:3987"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1-3.el9_7"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-5_14_0-611_9_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-5_14_0-611_9_1-debuginfo","source":"RHSA-2026:3987"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1-3.el9_7"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-5_14_0-611_9_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-5_14_0-611_9_1-debugsource","source":"RHSA-2026:3987"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-12.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_131_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_131_1","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-12.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_131_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_131_1-debuginfo","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-12.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_131_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_131_1-debugsource","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-9.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_137_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_137_1","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-9.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_137_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_137_1-debuginfo","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-9.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_137_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_137_1-debugsource","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-7.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_145_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_145_1","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-7.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_145_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_145_1-debuginfo","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-7.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_145_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_145_1-debugsource","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-3.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_158_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_158_1","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-3.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_158_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_158_1-debuginfo","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-3.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_158_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_158_1-debugsource","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-2.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_170_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_170_1","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-2.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_170_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_170_1-debuginfo","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:1-2.el8_6"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-372_170_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-372_170_1-debugsource","source":"RHSA-2026:3866"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-3.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_107_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_107_1","source":"RHSA-2026:3865"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-3.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_107_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_107_1-debuginfo","source":"RHSA-2026:3865"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-3.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_107_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_107_1-debugsource","source":"RHSA-2026:3865"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-2.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_120_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_120_1","source":"RHSA-2026:3865"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-2.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_120_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_120_1-debuginfo","source":"RHSA-2026:3865"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-2.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_120_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_120_1-debugsource","source":"RHSA-2026:3865"},{"ecosystem":"Red Hat:rhel_e4s:8.8::baseos","fixed":["0:1-11.el8_8"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-477_81_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-477_81_1","source":"RHSA-2026:3865"}],"prev":{"headline":"drm/msm: Fix pgtable prealloc error path","id":"CVE-2025-40247"},"products":["Linux"],"published":"2025-12-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-05","vendors":["Linux"]},"summary":"A race condition in the Linux kernel vsock implementation allows attackers to cause use-after-free or null pointer dereferences, potentially leading to system crashes or code execution.","url":"https://insights.sbomify.com/CVE-2025-40248/"}