Bug 2274731 - SELinux is preventing ModemManager from using the 'execmem' accesses on a process.
Summary: SELinux is preventing ModemManager from using the 'execmem' accesses on a pro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cc05a8e954c212f834ad04b3e80...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-12 14:24 UTC by Frank Büttner
Modified: 2024-05-10 01:04 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-39.6-1.fc39
Clone Of:
Environment:
Last Closed: 2024-05-10 01:04:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.23 KB, text/plain)
2024-04-12 14:24 UTC, Frank Büttner
no flags Details
File: os_info (734 bytes, text/plain)
2024-04-12 14:24 UTC, Frank Büttner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2053 0 None open Allow wireguard work with firewall-cmd (f39) 2024-04-12 14:44:54 UTC

Description Frank Büttner 2024-04-12 14:24:48 UTC
Description of problem:
Start the system.
SELinux is preventing ModemManager from using the 'execmem' accesses on a process.

*****  Plugin allow_execmem (91.4 confidence) suggests   *********************

If this issue occurred during normal system operation.
Then this alert could be a serious issue and your system could be compromised.
Do
contact your security administrator and report this issue

*****  Plugin catchall (9.59 confidence) suggests   **************************

Wenn Sie denken, dass es ModemManager standardmäßig erlaubt sein sollte, execmem Zugriff auf modemmanager_t Prozesse zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'ModemManager' --raw | audit2allow -M my-ModemManager
# semodule -X 300 -i my-ModemManager.pp

Additional Information:
Source Context                system_u:system_r:modemmanager_t:s0
Target Context                system_u:system_r:modemmanager_t:s0
Target Objects                Unbekannt [ process ]
Source                        ModemManager
Source Path                   ModemManager
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.5-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.5-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.8.4-200.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 4 20:45:21 UTC 2024 x86_64
Alert Count                   1
First Seen                    2024-04-12 16:22:33 CEST
Last Seen                     2024-04-12 16:22:33 CEST
Local ID                      b7800f29-e072-4e20-a46c-1435b99140e4

Raw Audit Messages
type=AVC msg=audit(1712931753.85:122): avc:  denied  { execmem } for  pid=4513 comm="ModemManager" scontext=system_u:system_r:modemmanager_t:s0 tcontext=system_u:system_r:modemmanager_t:s0 tclass=process permissive=0


Hash: ModemManager,modemmanager_t,modemmanager_t,process,execmem

Version-Release number of selected component:
selinux-policy-targeted-39.5-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing ModemManager from using the 'execmem' accesses on a process.
package:        selinux-policy-targeted-39.5-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.4-200.fc39.x86_64
comment:        Start the system.
component:      selinux-policy

Comment 1 Frank Büttner 2024-04-12 14:24:50 UTC
Created attachment 2026637 [details]
File: description

Comment 2 Frank Büttner 2024-04-12 14:24:51 UTC
Created attachment 2026638 [details]
File: os_info

Comment 3 Fedora Update System 2024-04-24 12:09:42 UTC
FEDORA-2024-98cd1ec226 (selinux-policy-39.6-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-98cd1ec226

Comment 4 Fedora Update System 2024-04-25 02:21:49 UTC
FEDORA-2024-98cd1ec226 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-98cd1ec226`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-98cd1ec226

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-05-10 01:04:38 UTC
FEDORA-2024-98cd1ec226 (selinux-policy-39.6-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.