{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-7308 exists.","fix":"Apply the vendor's patch.","what":"CVE-2017-7308 is a high-severity vulnerability in Linux kernel, published on 29 Mar 2017. 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-2017-7308 and fix it if it is affected.\n\nWhat it is: CVE-2017-7308 is a high-severity vulnerability in Linux kernel, published on 29 Mar 2017. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-7308 exists.\n\nAffected product: Linux kernel. 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-2017-7308/ (Markdown: https://insights.sbomify.com/CVE-2017-7308/index.md)","id":"CVE-2017-7308","markdown":"https://insights.sbomify.com/CVE-2017-7308/index.md","name":"CVE-2017-7308","record":{"aliases":["DEBIAN-CVE-2017-7308","GHSA-ppq3-433v-jp43","SUSE-SU-2017:1278-1","SUSE-SU-2017:1285-1","SUSE-SU-2017:1287-1","SUSE-SU-2017:1291-1","SUSE-SU-2017:1299-1","SUSE-SU-2017:1300-1","SUSE-SU-2017:1302-1","UBUNTU-CVE-2017-7308","USN-3256-1","USN-3256-2"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["privilege_escalation","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux kernel","requires_auth":"low_privilege","summary":"Local attackers can exploit an integer signedness error in the Linux kernel packet socket implementation to cause denial of service or escalate privileges.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"linux_kernel","vendor":"linux"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types"}],"description":"The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate certain block-size data, which allows local users to cause a denial of service (integer signedness error and out-of-bounds write), or gain privileges (if the CAP_NET_RAW capability is held), via crafted system calls.","ecosystems":["SUSE:Linux Enterprise Server 12-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12"],"exploits":{"exploitdb":4,"first_seen":"2017-03-29","github_poc":2,"max_poc_stars":0,"metasploit":1,"nuclei":0,"refs":[{"date":"2017-03-29","kind":"metasploit","ref":"exploit/linux/local/af_packet_packet_set_ring_priv_esc","stars":null,"title":"AF_PACKET packet_set_ring Privilege Escalation"},{"date":"2017-05-11","kind":"exploitdb","ref":"41994","stars":null,"title":"Linux Kernel 4.8.0-41-generic (Ubuntu) - Packet Socket Local Privilege Escalation"},{"date":"2018-05-18","kind":"exploitdb","ref":"44654","stars":null,"title":"Linux 4.8.0 \u003c 4.8.0-46 - AF_PACKET packet_set_ring Privilege Escalation (Metasploit)"},{"date":"2018-05-18","kind":"exploitdb","ref":"44654","stars":null,"title":"Linux 4.8.0 \u003c 4.8.0-46 - AF_PACKET packet_set_ring Privilege Escalation (Metasploit)"},{"date":"2018-12-29","kind":"exploitdb","ref":"47168","stars":null,"title":"Linux Kernel 4.8.0-34 \u003c 4.8.0-45 (Ubuntu / Linux Mint) - Packet Socket Local Privilege Escalation"},{"date":"2023-01-09T09:55:20Z","kind":"github_poc","ref":"https://github.com/anldori/CVE-2017-7308","stars":0,"title":"CVE-2017-7308 POC"},{"date":"2026-07-21T18:25:37Z","kind":"github_poc","ref":"https://github.com/WhatsWrongAndWhy/CVE-2017-7308","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Integer overflow in n/a","id":"CVE-2017-7308","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"linux:linux_kernel","products":["linux:linux_kernel"],"type":"integer_overflow","year":"2017"},"n_packages":14,"n_references":12,"next":{"headline":"MantisBT vulnerable to XSS through config_option parameter in adm_config_report.php","id":"CVE-2017-7309"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["9-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_13","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_13\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1299-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["9-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_14","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_14\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1285-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["9-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_15","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_15\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1300-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["6-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_16","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_16\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1291-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["5-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_17","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_17\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1278-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["5-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_18","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_18\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1287-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","fixed":["4-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_19","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_19\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012-LTSS","source":"SUSE-SU-2017:1302-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["9-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_13","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_13\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1299-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["9-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_14","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_14\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1285-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["9-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_15","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_15\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1300-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["6-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_16","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_16\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1291-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["5-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_17","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_17\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1278-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["5-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_18","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_18\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1287-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12","fixed":["4-2.1"],"introduced":["0"],"last_affected":[],"package":"kgraft-patch-SLE12_Update_19","purl":"pkg:rpm/suse/kgraft-patch-SLE12_Update_19\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012","source":"SUSE-SU-2017:1302-1"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2017-7307"},"products":["n/a"],"published":"2017-03-29","related":[{"cvss_score":8.8,"headline":"Linux Kernel Out-of-Bounds Write","id":"CVE-2026-53266","kev_date_added":"2026-09-18","published":"2026-06-25"},{"cvss_score":8.8,"headline":"Linux Kernel Improper Input Validation","id":"CVE-2013-6282","kev_date_added":"2022-09-15","published":"2013-11-19"},{"cvss_score":8.4,"headline":"Linux Kernel Heap-Based Buffer Overflow","id":"CVE-2022-0185","kev_date_added":"2024-08-21","published":"2022-02-11"},{"cvss_score":8.4,"headline":"Linux Kernel Privilege Escalation","id":"CVE-2013-2094","kev_date_added":"2022-09-15","published":"2013-05-14"},{"cvss_score":7.8,"headline":"Linux Kernel Unspecified","id":"CVE-2026-53362","kev_date_added":"2026-08-27","published":"2026-07-04"},{"cvss_score":7.8,"headline":"Linux Kernel Missing Initialization of a Variable","id":"CVE-2026-46300","kev_date_added":"2026-10-28","published":"2026-05-23"},{"cvss_score":7.8,"headline":"Linux Kernel Race Condition","id":"CVE-2025-39964","kev_date_added":"2026-09-18","published":"2025-10-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Local attackers can exploit an integer signedness error in the Linux kernel packet socket implementation to cause denial of service or escalate privileges.","url":"https://insights.sbomify.com/CVE-2017-7308/"}