Bug 1220952 (CVE-2021-47086)

Summary: VUL-0: CVE-2021-47086: kernel: phonet/pep: refuse to enable an unbound pipe
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: andrea.mattiazzo, denis.kirjanov, mhocko, pmladek
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/396232/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47086:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-03-05 10:22:56 UTC
In the Linux kernel, the following vulnerability has been resolved:

phonet/pep: refuse to enable an unbound pipe

This ioctl() implicitly assumed that the socket was already bound to
a valid local socket name, i.e. Phonet object. If the socket was not
bound, two separate problems would occur:

1) We'd send an pipe enablement request with an invalid source object.
2) Later socket calls could BUG on the socket unexpectedly being
   connected yet not bound to a valid object.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47086
https://www.cve.org/CVERecord?id=CVE-2021-47086
https://lore.kernel.org/linux-cve-announce/2024030455-CVE-2021-47086-cdaa@gregkh/

Patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=75a2f3152009
Comment 1 Andrea Mattiazzo 2024-03-05 10:28:27 UTC
Tracking as affected:
-cve/linux-5.14

cve/linux-4.12, cve/linux-4.4, cve/linux-5.3 not affected due to CONFIG_PHONET not set

SLE15-SP6 and stable already fixed
Comment 3 Petr Mladek 2024-03-05 14:48:02 UTC
Michal, could you please look at it?