canonical / canonical/ubuntu-com-security-api

CVE JSON: Package list for kernel entries is out of order

Open
#245 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
22
Forks
9
Avg merge
1d 3h
Merged PRs (30d)
2

Description

For CVEs for kernel, which contains a lot of packages, it is expected that the packages order is preserved from what was sent to the API.
This has been causing confusions to our users that wants to look for the generic kernel, "linux" which should be the first on the list but is being placed in the middle of many other source packages.

Example:
in https://ubuntu.com/security/cves/CVE-2025-38352.json we have

```
"packages": [
{
"debian": "https://tracker.debian.org/pkg/linux-hwe",
"name": "linux-hwe",
...
{
"debian": "https://tracker.debian.org/pkg/linux",
"name": "linux",
...
```
while in the source of the information, https://git.launchpad.net/ubuntu-cve-tracker/tree/active/CVE-2025-38352#n76, we can see that "linux" is the first package listed:
```
Patches_linux:
...
Patches_linux-hwe:
...
```

This is likely an issue on how the CVE is stored in the DB.
Can you please take a look at it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how CVE package data is read from the database and serialized into the CVE JSON response. Compare the package order for CVE-2025-38352 with the Launchpad source, and consider the issue done when the API preserves that source order, with "linux" listed first.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.