--- title: 'Gentoo Vulnerability Treatment Policy' navtitle: 'Vulnerability Treatment Policy' nav1: support nav2: security nav3: security-vtp nav3-show: true nav3-weight: 10 layout: page-nav3 body_class: nav-align-h2 ---
Gentoo Linux is offered on many different architectures. Some of these architectures have more developers than others and, as such, are able to respond to new security vulnerabilities more quickly. While the ultimate goal of the Gentoo Security project is to ensure that all architectures receive security fixes at the same time, we must also balance that against releasing security fixes and GLSAs as quickly as possible so that the majority of our users are informed and protected.
For this reason, the security team separates Gentoo architectures into two groups, supported and unsupported:
Here is the list of currently supported architectures: amd64, ppc, ppc64, x86.
All architectures are welcome and encouraged to become a supported architecture. There are two straightforward criteria that need to be met in order to be officially supported by the Gentoo Security project:
Kernels are not covered by the GLSA release process. Vulnerabilities must still be reported and will be fixed, but no GLSA will be issued when everything is solved.
Sometimes a vulnerability is found in a package that is not part of the stable trees. This is the case when the vulnerability is a security regression in a newer (~ARCH) ebuild, but the older (stable) packages are not affected, or when the package has never had any stable ebuilds in the tree. In this case the vulnerability must still be reported and will be fixed, but no GLSA will be issued when everything is solved.
Each vulnerability should initially be entered as a Bugzilla entry with product "Gentoo Security" and component "Vulnerabilities" (assigned to security@gentoo.org). Major security lists should have official scouts assigned to them which should ensure that all vulnerabilities announced on these lists get a security Bugzilla entry.
Confidential vulnerabilities (for example coming from developer's direct communication or restricted lists) must follow a specific procedure. They should not appear as a public bugzilla entry, but only in security-restricted media like a private bugzilla section or the GLSAMaker tool. They should get corrected using private communication channels between the GLSA coordinator and the package maintainer.
In order to seed the appropriate reaction times and escalation procedures, we need to assign a severity level to each vulnerability. This severity level must be based on how widespread the affected software is amongst Gentoo users and depth of the vulnerability.
You can use the following two tables to help you assign the severity level:
How widespread the package is | Configurations affected | Severity Component |
---|---|---|
System package | Default or specific | A |
Common package (supposed present on at least 1/20 Gentoo installs) | Default | A |
Specific | B |
|
Marginal software (supposed present on less than 1/20 Gentoo installs) | Default | B |
Specific | C |
|
Package that never had an affected version stable | Default or Specific | ~ |
Evaluate the vulnerability type | Severity Component | Corresponding GLSA severity |
---|---|---|
Complete remote system compromise: remote execution of arbitrary code with root privileges | 0 |
high |
Remote active compromise: direct remote execution of arbitrary code with reduced or user rights on a server | 1 |
high |
Local privilege escalation: flaw allowing root compromise when you have local access | 1 |
high |
Remote passive compromise: remote execution of arbitrary code by enticing a user to visit a malicious server or using malicious data | 2 |
normal |
Global service compromise: Denial of Service, passwords, full database leaks, data loss (symlink attacks) | 3 |
normal |
Others: Cross-Site Scripting, information leak... | 4 |
low |
Here is the table of the resulting severity levels. They should be set to the Bugzilla severity level of the same name:
Severity level | Corresponding evaluations | Target delay | GLSA |
---|---|---|---|
Blocker | A0 , B0 |
1 day | yes |
Critical | A1 , C0 |
3 days | yes |
Major | A2 , B1 , C1 |
5 days | yes |
Normal | A3 , B2 , C2 |
10 days | yes |
Minor | A4 , B3 , B4 , C3 |
20 days | ? |
Trivial | C4 , ~0 , ~1 , ~2 , ~3 , ~4 |
40 days | no |
Someone should assume the responsibility of security bug wrangler and do the following tasks as soon as a new vulnerability enters Bugzilla:
During this phase it may be necessary to ask the reporter for details. The bug remains with status UNCONFIRMED or CONFIRMED as long as necessary. When (if) the bug passes these sanity tests, it should be marked as IN_PROGRESS and the bug wrangler should do the following:
This dispatch has to be done quickly after bug creation in order to seed short delays for major vulnerabilities and to show appreciation to the bug reporter. The target delay is 12 hours. The security bug wrangler has to maintain a list of possible GLSA coordinators with availabilities and preferred areas of expertise. In order to ensure permanent dispatch, the security bug wrangler job should have appropriate back-ups.
The GLSA coordinator has responsibility for the following tasks:
upstream
.ebuild
.stable
.glsa
.In order to meet the target delay for vulnerability resolution, a number of escalation procedures have been defined. These include:
upstream+
, ebuild+
, stable+
and glsa+
upstream+
status), a decision must be taken on masking the package:
The Security Team can mask a package which is not depended on by itself, maintainers should be consulted before masking a package which is not standalone
ebuild+
status), the Security Team should try to bump the ebuild by itselfstable+
status), the Security Team will shout on IRC channels and gentoo-dev list to get more testers.
It will either mark the ebuild stable by itself or, in the event this cannot be done due to stability issues, mask it (see security masking approval policy above)
glsa+
status), then another member of the Security Team should draft the GLSA and submit it to peer reviewSecurity bugs differ from other bugs, in that an easy and simple upgrade path must be presented to users through the GLSA. Therefore package maintainers and GLSA coordinators should follow these good practices:
stable
status, in order to correctly evaluate what keywords are needed for the fix versionOnce ready, a GLSA should be submitted to peer review. At least two members of the Security Team must approve the draft GLSA. Once the draft passes the peer review process, it should be assigned an official GLSA number.
Once the GLSA passes the peer review process (and after making sure the ebuild has made its way into the stable tree), the GLSA coordinator should commit the GLSA XML in the Gentoo CVS repository. Once this is done, the GLSA will automatically appear on the official GLSA index page and RSS feed.
The GLSA text version must be published by the GLSA coordinator to the following media:
Gentoo Linux official announcement mailing-list | gentoo-announce@lists.gentoo.org |
---|---|
Gentoo Linux announcement forum | https://forums.gentoo.org/viewforum.php?f=16 |
There should be one single email sent, with the following rules:
To:
field must be set to gentoo-announceFrom:
and Return-Path:
must be set to the GLSA coordinator @gentoo.org addressSubject:
field must be "[ GLSA XXXXYY-ZZ ] Your vulnerability here"When the GLSA has been published the corresponding bugzilla bug should be resolved as FIXED, with the GLSA number referenced in the comments section of the bug. GLSAMaker 2 offers this option after releasing the advisory.
Sometimes an error will slip through the peer-review process and an incorrect GLSA will be published to the world. Depending on the severity of the error(s), the following policy for erratum should be applied:
GLSA error type | Erratum action |
---|---|
Typos: presentation, grammar or syntax errors | Do nothing |
Error in title: title is about another package or does not describe the vulnerability correctly | An erratum GLSA should be published, replacing the erroneous one |
Error in description: the problem is not described correctly | The GLSA XML should be corrected, no publication |
Omission: GLSA is correct but incomplete, you also need to update another package to get protection from that vulnerability | A separate GLSA should be issued on the other vulnerable package |
Error in affected/unaffected versions number, but people using stable packages and applying GLSA instructions are protected anyway | The GLSA XML should be corrected, no publication |
Error in affected/unaffected versions number, people applying GLSA instructions are not at all protected | An erratum GLSA should be published, replacing the erroneous one |