mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6184] [MERGED] security: fix sscanf rv checks (CodeQL) #5864
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5864
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/6184
Author: @kmk3
Created: 2/1/2024
Status: ✅ Merged
Merged: 2/4/2024
Merged by: @kmk3
Base:
master← Head:fix-sscanf-rv📝 Commits (1)
ef2f5f3security: fix sscanf rv checks (CodeQL)📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
src/firejail/restrict_users.c(+4 -4)📄 Description
Fix the following CodeQL warning (CWE-253)[1]:
Note: The affected code portions attempt to read values from /etc/passwd
and /etc/group, so invalid input seems unlikely to be the case. Either
way, the changes make the checks in question more consistent with
similar sscanf return value checks in the rest of the code.
Added on commit
4f003daec("prevent leaking user information bymodifying /home directory, /etc/passwd and /etc/group", 2015-11-19).
[1] https://github.com/netblue30/firejail/security/code-scanning/32
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.