{"api_version":"1","generated_at":"2026-11-30T18:38:07+00:00","cve":"CVE-2026-139110","urls":{"html":"https://cve.report/CVE-2026-139110","api":"https://cve.report/api/cve/CVE-2026-139110.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139110","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139110"},"summary":{"title":"apparmor: mediate AF_UNSPEC socket disconnects","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: mediate AF_UNSPEC socket disconnects\n\naa_inet_connect_perm() returns success immediately for AF_UNSPEC\nbefore checking the active AppArmor profile.  AF_UNSPEC is the socket\ndisconnect operation for TCP and UDP.  A process confined by a profile\ncontaining deny network can therefore disconnect inherited sockets\neven though ordinary socket creation and connect calls are denied.\n\nconsole output:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/fab5c58d6f184f5fab88a3a31a80c2b919efecf0/console-output.txt\nreproduction kernel config:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/b9192c97c92fdd3b59089704bad6fbd0a33ccf06/kernel-config.txt\nreproducer:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/92c7dd098a227276fe3daeea45996e2848e66439/poc.c\n\nBuild the kernel from HEAD with the attached reproduction config, then\nmake a one-file initramfs.  The PoC mounts sysfs and securityfs\nitself; DEVTMPFS_MOUNT supplies /dev/console.\n\n    mkdir -p build rootfs\n    cp kernel-config.txt build/.config\n    make O=build olddefconfig\n    make O=build -j\"$(nproc)\" bzImage\n    cc -O2 -static -Wall -Wextra -o poc poc.c\n    cp poc rootfs/poc\n    (cd rootfs && find poc | cpio -o -H newc --owner=0:0) | gzip -9 > initramfs.cpio.gz\n    timeout 900 qemu-system-x86_64 -kernel build/arch/x86/boot/bzImage \\\n        -initrd initramfs.cpio.gz -append \"console=ttyS0 rdinit=/poc panic=-1 loglevel=7 lsm=apparmor security=apparmor apparmor=1\" \\\n        -nographic -m 1024 -smp 1 -no-reboot 2>&1 | tee console.log\n\nUnder the deny-network profile, socket() and connect(AF_INET) returned\nEACCES, but connect(fd, AF_UNSPEC) returned success and tore down the\ninherited connection and listener.  Two fresh boots matched.  A\none-line control that routed AF_UNSPEC through aa_sk_perm returned\nEACCES and kept both sockets alive.\n\nImpact and prerequisites: A confined process that inherits a TCP/UDP\nsocket can bypass the profile's network mediation for disconnect and\ndisrupt that socket.  The finding does not permit socket creation,\nbind, or arbitrary peer connections; no privilege escalation is\ndemonstrated.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:19","updated_at":"2026-11-30 14:18:19"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/049760746597cfd054c181fe850531be3c1e7358","name":"https://git.kernel.org/stable/c/049760746597cfd054c181fe850531be3c1e7358","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6bac94125c0b9471f46a18be21916d6d4a5bcd60","name":"https://git.kernel.org/stable/c/6bac94125c0b9471f46a18be21916d6d4a5bcd60","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139110","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139110","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 89ac6aa752ec8b7b43d8d88a3e7719d1868d582a 6bac94125c0b9471f46a18be21916d6d4a5bcd60 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 89ac6aa752ec8b7b43d8d88a3e7719d1868d582a 049760746597cfd054c181fe850531be3c1e7358 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["security/apparmor/af_inet.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6bac94125c0b9471f46a18be21916d6d4a5bcd60","status":"affected","version":"89ac6aa752ec8b7b43d8d88a3e7719d1868d582a","versionType":"git"},{"lessThan":"049760746597cfd054c181fe850531be3c1e7358","status":"affected","version":"89ac6aa752ec8b7b43d8d88a3e7719d1868d582a","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["security/apparmor/af_inet.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.3"},{"lessThan":"7.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: mediate AF_UNSPEC socket disconnects\n\naa_inet_connect_perm() returns success immediately for AF_UNSPEC\nbefore checking the active AppArmor profile.  AF_UNSPEC is the socket\ndisconnect operation for TCP and UDP.  A process confined by a profile\ncontaining deny network can therefore disconnect inherited sockets\neven though ordinary socket creation and connect calls are denied.\n\nconsole output:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/fab5c58d6f184f5fab88a3a31a80c2b919efecf0/console-output.txt\nreproduction kernel config:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/b9192c97c92fdd3b59089704bad6fbd0a33ccf06/kernel-config.txt\nreproducer:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/92c7dd098a227276fe3daeea45996e2848e66439/poc.c\n\nBuild the kernel from HEAD with the attached reproduction config, then\nmake a one-file initramfs.  The PoC mounts sysfs and securityfs\nitself; DEVTMPFS_MOUNT supplies /dev/console.\n\n    mkdir -p build rootfs\n    cp kernel-config.txt build/.config\n    make O=build olddefconfig\n    make O=build -j\"$(nproc)\" bzImage\n    cc -O2 -static -Wall -Wextra -o poc poc.c\n    cp poc rootfs/poc\n    (cd rootfs && find poc | cpio -o -H newc --owner=0:0) | gzip -9 > initramfs.cpio.gz\n    timeout 900 qemu-system-x86_64 -kernel build/arch/x86/boot/bzImage \\\n        -initrd initramfs.cpio.gz -append \"console=ttyS0 rdinit=/poc panic=-1 loglevel=7 lsm=apparmor security=apparmor apparmor=1\" \\\n        -nographic -m 1024 -smp 1 -no-reboot 2>&1 | tee console.log\n\nUnder the deny-network profile, socket() and connect(AF_INET) returned\nEACCES, but connect(fd, AF_UNSPEC) returned success and tore down the\ninherited connection and listener.  Two fresh boots matched.  A\none-line control that routed AF_UNSPEC through aa_sk_perm returned\nEACCES and kept both sockets alive.\n\nImpact and prerequisites: A confined process that inherits a TCP/UDP\nsocket can bypass the profile's network mediation for disconnect and\ndisrupt that socket.  The finding does not permit socket creation,\nbind, or arbitrary peer connections; no privilege escalation is\ndemonstrated."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:40.482Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/6bac94125c0b9471f46a18be21916d6d4a5bcd60"},{"url":"https://git.kernel.org/stable/c/049760746597cfd054c181fe850531be3c1e7358"}],"title":"apparmor: mediate AF_UNSPEC socket disconnects","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139110","datePublished":"2026-11-30T13:31:40.482Z","dateReserved":"2026-11-30T13:22:15.914Z","dateUpdated":"2026-11-30T13:31:40.482Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:19","lastModifiedDate":"2026-11-30 14:18:19","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139110","Ordinal":"1","Title":"apparmor: mediate AF_UNSPEC socket disconnects","CVE":"CVE-2026-139110","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139110","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: mediate AF_UNSPEC socket disconnects\n\naa_inet_connect_perm() returns success immediately for AF_UNSPEC\nbefore checking the active AppArmor profile.  AF_UNSPEC is the socket\ndisconnect operation for TCP and UDP.  A process confined by a profile\ncontaining deny network can therefore disconnect inherited sockets\neven though ordinary socket creation and connect calls are denied.\n\nconsole output:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/fab5c58d6f184f5fab88a3a31a80c2b919efecf0/console-output.txt\nreproduction kernel config:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/b9192c97c92fdd3b59089704bad6fbd0a33ccf06/kernel-config.txt\nreproducer:\nhttps://gist.githubusercontent.com/shaos26/73b057c77b9ea22d5e6813c259dbf43c/raw/92c7dd098a227276fe3daeea45996e2848e66439/poc.c\n\nBuild the kernel from HEAD with the attached reproduction config, then\nmake a one-file initramfs.  The PoC mounts sysfs and securityfs\nitself; DEVTMPFS_MOUNT supplies /dev/console.\n\n    mkdir -p build rootfs\n    cp kernel-config.txt build/.config\n    make O=build olddefconfig\n    make O=build -j\"$(nproc)\" bzImage\n    cc -O2 -static -Wall -Wextra -o poc poc.c\n    cp poc rootfs/poc\n    (cd rootfs && find poc | cpio -o -H newc --owner=0:0) | gzip -9 > initramfs.cpio.gz\n    timeout 900 qemu-system-x86_64 -kernel build/arch/x86/boot/bzImage \\\n        -initrd initramfs.cpio.gz -append \"console=ttyS0 rdinit=/poc panic=-1 loglevel=7 lsm=apparmor security=apparmor apparmor=1\" \\\n        -nographic -m 1024 -smp 1 -no-reboot 2>&1 | tee console.log\n\nUnder the deny-network profile, socket() and connect(AF_INET) returned\nEACCES, but connect(fd, AF_UNSPEC) returned success and tore down the\ninherited connection and listener.  Two fresh boots matched.  A\none-line control that routed AF_UNSPEC through aa_sk_perm returned\nEACCES and kept both sockets alive.\n\nImpact and prerequisites: A confined process that inherits a TCP/UDP\nsocket can bypass the profile's network mediation for disconnect and\ndisrupt that socket.  The finding does not permit socket creation,\nbind, or arbitrary peer connections; no privilege escalation is\ndemonstrated.","Type":"Description","Title":"apparmor: mediate AF_UNSPEC socket disconnects"}]}}}